DiscoverMeteor / book

17 stars 0 forks source link

Chapter 8 unneeded comma #484

Closed jamesmillerburgess closed 8 years ago

jamesmillerburgess commented 8 years ago

The comma after the remove property is unneeded:

Posts = new Mongo.Collection('posts');

Posts.allow({
  update: function(userId, post) { return ownsDocument(userId, post); },
  remove: function(userId, post) { return ownsDocument(userId, post); },
});

//...
SachaG commented 8 years ago

Yep, fixing this.