Closed crapthings closed 11 years ago
The function signature for before update has to match the one for the update call:
Organizations.before("update", function (userId, selector, modifier, options) {
modifier.$set.updatedAt = new Date();
modifier.$set.timestamp = Date.now();
});
Awesome, it works.
this is my code.
but update method didn't update document at all