temporarily remove stale project thing
This commit is contained in:
parent
ae7212c6a9
commit
1e49b678c4
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue