From ee0dbf4c19eabb77562bcff54a361b49675bb95f Mon Sep 17 00:00:00 2001 From: denihs Date: Wed, 3 Aug 2022 11:26:28 -0400 Subject: [PATCH] - using countAsync() instead of count() in the skeletons --- .../static-assets/skel-full/imports/startup/server/fixtures.js | 2 +- tools/static-assets/skel-vue/imports/api/fixtures.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/static-assets/skel-full/imports/startup/server/fixtures.js b/tools/static-assets/skel-full/imports/startup/server/fixtures.js index ccd284f668..f3473aa4f8 100644 --- a/tools/static-assets/skel-full/imports/startup/server/fixtures.js +++ b/tools/static-assets/skel-full/imports/startup/server/fixtures.js @@ -9,7 +9,7 @@ async function insertLink({ title, url }) { Meteor.startup(async () => { // If the Links collection is empty, add some data. - if (Links.find().count() === 0) { + if (await Links.find().countAsync() === 0) { await insertLink({ title: 'Do the Tutorial', url: 'https://www.meteor.com/tutorials/react/creating-an-app', diff --git a/tools/static-assets/skel-vue/imports/api/fixtures.js b/tools/static-assets/skel-vue/imports/api/fixtures.js index 07079bafb3..daa11f32f1 100644 --- a/tools/static-assets/skel-vue/imports/api/fixtures.js +++ b/tools/static-assets/skel-vue/imports/api/fixtures.js @@ -7,7 +7,7 @@ async function insertLink({ title, url }) { Meteor.startup(async () => { // If the Links collection is empty, add some data. - if (Links.find().count() === 0) { + if (await Links.find().countAsync() === 0) { await insertLink({ title: 'Do the Tutorial', url: 'https://vue-tutorial.meteor.com/',