mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
- using countAsync() instead of count() in the skeletons
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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/',
|
||||
|
||||
Reference in New Issue
Block a user