- using countAsync() instead of count() in the skeletons

This commit is contained in:
denihs
2022-08-03 11:26:28 -04:00
parent b42b7cdc2d
commit ee0dbf4c19
2 changed files with 2 additions and 2 deletions

View File

@@ -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',

View File

@@ -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/',