Skip to content

Instantly share code, notes, and snippets.

@filipenevola
Created August 8, 2017 19:44
Show Gist options
  • Select an option

  • Save filipenevola/6446b89f3629637204372f3a647b7e6d to your computer and use it in GitHub Desktop.

Select an option

Save filipenevola/6446b89f3629637204372f3a647b7e6d to your computer and use it in GitHub Desktop.
Meteor.methods({
likePost(postId) {
check(postId, String);
Posts.like(postId, this.userId);
},
like(postId) { //deprecated, remove after MM/DD/YYYY
this.likePost(postId);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment