temporarily remove stale project thing

This commit is contained in:
Cassie Tarakajian 2017-03-15 11:59:07 -04:00
parent ae7212c6a9
commit 1e49b678c4

View file

@ -40,10 +40,10 @@ export function updateProject(req, res) {
res.status(403).send({ success: false, message: 'Session does not match owner of project.' }); res.status(403).send({ success: false, message: 'Session does not match owner of project.' });
return; return;
} }
if (req.body.updatedAt && moment(req.body.updatedAt) < moment(project.updatedAt)) { // 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.' }); // res.status(409).send({ success: false, message: 'Attempted to save stale version of project.' });
return; // return;
} // }
Project.findByIdAndUpdate(req.params.project_id, Project.findByIdAndUpdate(req.params.project_id,
{ {
$set: req.body $set: req.body