DiscoverMeteor / DiscoverMeteor_En

The English version of Discover Meteor
12 stars 0 forks source link

Missing explanation in 04s #17

Open Viktorminator opened 9 years ago

Viktorminator commented 9 years ago

Please add next:

When you launch code on server

Meteor.publish('posts', function() {
  return Posts.find({flagged: false});
});

you must change your fixture file fixture.js (to add flagged: false field):

if (Posts.find().count() === 0) {
    Posts.insert({
      title: 'Introducing Telescope',
      author: 'Sasha Greif',
      url: 'http://sachagreif.com/',
      flagged: false
    });
}

And make meteor reset command in Terminal.