From 1e49b678c436bd5e9f421921e26461e8581975db Mon Sep 17 00:00:00 2001 From: Cassie Tarakajian Date: Wed, 15 Mar 2017 11:59:07 -0400 Subject: [PATCH] temporarily remove stale project thing --- server/controllers/project.controller.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/controllers/project.controller.js b/server/controllers/project.controller.js index 28232f1c..fc19a23c 100644 --- a/server/controllers/project.controller.js +++ b/server/controllers/project.controller.js @@ -40,10 +40,10 @@ export function updateProject(req, res) { res.status(403).send({ success: false, message: 'Session does not match owner of project.' }); return; } - if (req.body.updatedAt && moment(req.body.updatedAt) < moment(project.updatedAt)) { - res.status(409).send({ success: false, message: 'Attempted to save stale version of project.' }); - return; - } + // if (req.body.updatedAt && moment(req.body.updatedAt) < moment(project.updatedAt)) { + // res.status(409).send({ success: false, message: 'Attempted to save stale version of project.' }); + // return; + // } Project.findByIdAndUpdate(req.params.project_id, { $set: req.body