From a0357f23bb1e3dada3102a184e06c98a4e56a65b Mon Sep 17 00:00:00 2001 From: Kenneth Jao Date: Thu, 18 Aug 2016 19:32:39 -0400 Subject: [PATCH] Fixed small bugs --- hourglass/server/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hourglass/server/main.js b/hourglass/server/main.js index d72b211..cacb98d 100644 --- a/hourglass/server/main.js +++ b/hourglass/server/main.js @@ -311,7 +311,7 @@ Meteor.methods({ }); } else if (authorized.indexOf(Meteor.userId()) != -1) { if (change.name.length <= 50 && change.description.length <= 150 && worktype.indexOf(change.type) != -1) { - Meteor.update({ + work.update({ _id: change._id }, { $set: { @@ -328,8 +328,8 @@ Meteor.methods({ _id: change._id }).creator) { if (change.name.length <= 50 && worktype.indexOf(change.type) != -1 && - input.dueDate instanceof Date && input.dueDate.getTime() >= ref) { - Meteor.update({ + change.dueDate instanceof Date && change.dueDate.getTime() >= ref) { + work.update({ _id: change._id }, { $set: {