From a59efb258348f1acc69fdc2d1158d3129a1ea4fe Mon Sep 17 00:00:00 2001 From: Cassie Tarakajian Date: Wed, 25 Jan 2017 13:39:20 -0500 Subject: [PATCH] #254 remove warning for stale project, needs to be tested more --- server/controllers/project.controller.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/controllers/project.controller.js b/server/controllers/project.controller.js index c6271d94..aa4ee40d 100644 --- a/server/controllers/project.controller.js +++ b/server/controllers/project.controller.js @@ -32,9 +32,9 @@ export function updateProject(req, res) { if (!req.user || !project.user.equals(req.user._id)) { return res.status(403).send({ success: false, message: 'Session does not match owner of project.' }); } - if (req.body.updatedAt && moment(req.body.updatedAt) < moment(project.updatedAt)) { - return res.status(409).send({ success: false, message: 'Attempted to save stale version of project.' }); - } + // if (req.body.updatedAt && moment(req.body.updatedAt) < moment(project.updatedAt)) { + // return res.status(409).send({ success: false, message: 'Attempted to save stale version of project.' }); + // } Project.findByIdAndUpdate(req.params.project_id, { $set: req.body