notherbase-fs 4.4.4 → 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.
@@ -176,7 +176,8 @@ export default class SpiritWorld {
176
176
  }
177
177
 
178
178
  // save the spirit with the given service name and parent
179
- let spirit = await req.db.Spirit.recallOne(req.body.service, parent, {}, id);
179
+ let spirit = null;
180
+ if (id !== "new") spirit = await req.db.Spirit.recallOne(req.body.service, parent, {}, id);
180
181
 
181
182
  if (spirit) {
182
183
  // update existing spirit
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "notherbase-fs",
3
- "version": "4.4.4",
3
+ "version": "4.4.6",
4
4
  "description": "Functions to help make developing for NotherBase easier.",
5
5
  "exports": "./notherbase-fs.js",
6
6
  "scripts": {