From 5ce6250f006bfe0345ca89b45c91a00ff47c685a Mon Sep 17 00:00:00 2001 From: Alexis <35.alexis.pele@gmail.com> Date: Thu, 21 May 2020 22:50:57 +0200 Subject: [PATCH] - [API] Fixed an always pending promise in update spells --- routes/spells.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/routes/spells.js b/routes/spells.js index 4774c14..f5eab72 100644 --- a/routes/spells.js +++ b/routes/spells.js @@ -299,6 +299,8 @@ const updateSpell = (s, id) => { }) } } + } else { + resolve() } }) } @@ -332,6 +334,8 @@ const updateSpell = (s, id) => { }) } } + } else { + resolve() } }) } @@ -367,6 +371,8 @@ const updateSpell = (s, id) => { }) } } + } else { + resolve() } }) }