spice-js 2.6.63 → 2.6.64
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.
|
@@ -897,7 +897,7 @@ class SpiceModel {
|
|
|
897
897
|
} else {
|
|
898
898
|
delete results["id"];
|
|
899
899
|
results.deleted = true;
|
|
900
|
-
delete_response = yield _this11.database.update(args.id,
|
|
900
|
+
delete_response = yield _this11.database.update(args.id, results);
|
|
901
901
|
}
|
|
902
902
|
|
|
903
903
|
if (args.skip_hooks != true) {
|
|
@@ -1255,7 +1255,8 @@ class SpiceModel {
|
|
|
1255
1255
|
_this15[_mapping_dept];
|
|
1256
1256
|
|
|
1257
1257
|
if (_this15[_level] + 1 < _this15[_mapping_dept]) {
|
|
1258
|
-
var classes = _.isArray(Class) ? Class : [Class];
|
|
1258
|
+
var classes = _.compact(_.isArray(Class) ? Class : [Class]);
|
|
1259
|
+
|
|
1259
1260
|
var ids = [];
|
|
1260
1261
|
|
|
1261
1262
|
_.each(data, result => {
|
|
@@ -1321,7 +1322,8 @@ class SpiceModel {
|
|
|
1321
1322
|
ids = _.union(ids, items);
|
|
1322
1323
|
});
|
|
1323
1324
|
|
|
1324
|
-
var classes = _.isArray(Class) ? Class : [Class];
|
|
1325
|
+
var classes = _.compact(_.isArray(Class) ? Class : [Class]);
|
|
1326
|
+
|
|
1325
1327
|
var returned_all = yield Promise.allSettled(_.map(classes, obj => {
|
|
1326
1328
|
return new obj(_extends({}, _this16[_args], {
|
|
1327
1329
|
skip_cache: _this16[_skip_cache],
|