notherbase-fs 3.0.6 → 3.0.8
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.
- package/models/spirit.js +1 -1
- package/package.json +1 -1
- package/views/scripts/base.js +2 -3
package/models/spirit.js
CHANGED
|
@@ -99,7 +99,7 @@ export default class Spirit {
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
static delete = async (options = {}, data = {}, id = null) => {
|
|
102
|
-
let found = await Spirit.db.
|
|
102
|
+
let found = await Spirit.db.deleteMany(Spirit.buildQuery(options, data, id));
|
|
103
103
|
|
|
104
104
|
return found.deletedCount;
|
|
105
105
|
}
|
package/package.json
CHANGED
package/views/scripts/base.js
CHANGED
|
@@ -289,7 +289,7 @@ class Base {
|
|
|
289
289
|
}
|
|
290
290
|
|
|
291
291
|
do = async (what, data = null, route = window.location.pathname) => {
|
|
292
|
-
let response = Base.commune("/s/serve", {
|
|
292
|
+
let response = await Base.commune("/s/serve", {
|
|
293
293
|
script: what,
|
|
294
294
|
...data
|
|
295
295
|
}, {
|
|
@@ -298,8 +298,7 @@ class Base {
|
|
|
298
298
|
|
|
299
299
|
this.playerInventory.refresh();
|
|
300
300
|
this.playerAttributes.refresh();
|
|
301
|
-
|
|
302
|
-
await response;
|
|
301
|
+
|
|
303
302
|
return response;
|
|
304
303
|
}
|
|
305
304
|
|