From e75c98b299c4912db0e9931b77691725b8024f8c Mon Sep 17 00:00:00 2001 From: Oliver Wright Date: Wed, 20 Feb 2019 21:27:28 +0000 Subject: [PATCH] Prevent Race Condition when Updating Project - Fixes #837 (#838) --- server/controllers/project.controller.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/controllers/project.controller.js b/server/controllers/project.controller.js index 15e9b3ee..9e510e4b 100644 --- a/server/controllers/project.controller.js +++ b/server/controllers/project.controller.js @@ -76,8 +76,9 @@ export function updateProject(req, res) { } res.json(savedProject); }); + } else { + res.json(updatedProject); } - res.json(updatedProject); }); }); }