I’m upgrading from Meteor 1.0
to Meteor 1.2
.
The following Meteor method under 1.0 would run on both client and server. This was evidenced by the log under Meteor.isServer
. However, under 1.2 it only runs on client and Meteor.isServer
is always false.
Any insights/suggestions are appreciated.
In /lib/collections/file.coffee
:
Meteor.methods
myFunction : ->
if Meteor.isServer
console.log 'isServer'
{do stuff}
Note: I have tried upgrading to 1.2.1, 1.2.0.2 and 1.3 but with no better luck.
Thanks!