notherbase-fs 4.4.5 → 4.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -177,7 +177,7 @@ export default class SpiritWorld {
|
|
|
177
177
|
|
|
178
178
|
// save the spirit with the given service name and parent
|
|
179
179
|
let spirit = null;
|
|
180
|
-
if (id !== "new") await req.db.Spirit.recallOne(req.body.service, parent, {}, id);
|
|
180
|
+
if (id !== "new") spirit = await req.db.Spirit.recallOne(req.body.service, parent, {}, id);
|
|
181
181
|
|
|
182
182
|
if (spirit) {
|
|
183
183
|
// update existing spirit
|