notherbase-fs 4.4.5 → 4.4.7

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
@@ -213,7 +213,7 @@ export default class SpiritWorld {
213
213
 
214
214
  // delete the spirits
215
215
  let deleted = await req.db.Spirit.delete(req.body.service, parent, data, id);
216
- res.send(deleted);
216
+ res.send(`${deleted}`);
217
217
  } catch (error) {
218
218
  console.log(error);
219
219
  fail(res, "Server error");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "notherbase-fs",
3
- "version": "4.4.5",
3
+ "version": "4.4.7",
4
4
  "description": "Functions to help make developing for NotherBase easier.",
5
5
  "exports": "./notherbase-fs.js",
6
6
  "scripts": {