Skip to content

Commit 1e49b67

Browse files
committed
temporarily remove stale project thing
1 parent ae7212c commit 1e49b67

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

server/controllers/project.controller.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ export function updateProject(req, res) {
4040
res.status(403).send({ success: false, message: 'Session does not match owner of project.' });
4141
return;
4242
}
43-
if (req.body.updatedAt && moment(req.body.updatedAt) < moment(project.updatedAt)) {
44-
res.status(409).send({ success: false, message: 'Attempted to save stale version of project.' });
45-
return;
46-
}
43+
// if (req.body.updatedAt && moment(req.body.updatedAt) < moment(project.updatedAt)) {
44+
// res.status(409).send({ success: false, message: 'Attempted to save stale version of project.' });
45+
// return;
46+
// }
4747
Project.findByIdAndUpdate(req.params.project_id,
4848
{
4949
$set: req.body

0 commit comments

Comments
 (0)