I have a function like the one below:
Meteor.methods({
updateCounts: function(id, countModifier) {
return console.log("updating counts", countModifier);
}
})
That I am calling from two different places. The first:
Meteor.call("updateCounts", insertArticle.userEventId, 1)
executes on the client but not the sever. The second call is basically identical but with a different value:
Meteor.call("updateCounts", userEventId, -1)
but for some reason it executes on both the client and the server.
Does anyone have any idea why one of these would execute on the server and one would not?
via Abe Miessler
No comments:
Post a Comment