We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33a46cc commit 41eded5Copy full SHA for 41eded5
server/controllers/project.controller.js
@@ -20,7 +20,7 @@ export function updateProject(req, res) {
20
res.status(403).send({ success: false, message: 'Session does not match owner of project.' });
21
return;
22
}
23
- if (req.body.updatedAt && isAfter(new Date(project.updatedAt), req.body.updatedAt)) {
+ if (req.body.updatedAt && isAfter(new Date(project.updatedAt), new Date(req.body.updatedAt))) {
24
res.status(409).send({ success: false, message: 'Attempted to save stale version of project.' });
25
26
0 commit comments