Prevent Race Condition when Updating Project - Fixes #837 (#838)

This commit is contained in:
Oliver Wright 2019-02-20 21:27:28 +00:00 committed by Cassie Tarakajian
parent f1b6aab749
commit e75c98b299

View file

@ -76,8 +76,9 @@ export function updateProject(req, res) {
} }
res.json(savedProject); res.json(savedProject);
}); });
} } else {
res.json(updatedProject); res.json(updatedProject);
}
}); });
}); });
} }