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