spice-js 2.7.28 → 2.7.29
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.
|
@@ -914,7 +914,9 @@ class SpiceModel {
|
|
|
914
914
|
yield dbOperation();
|
|
915
915
|
}
|
|
916
916
|
if (args.skip_hooks != true) {
|
|
917
|
-
yield _this1.run_hook(
|
|
917
|
+
yield _this1.run_hook(_extends({}, results, {
|
|
918
|
+
id: args.id
|
|
919
|
+
}), "delete", "after", results);
|
|
918
920
|
}
|
|
919
921
|
return {};
|
|
920
922
|
});
|
package/package.json
CHANGED
package/src/models/SpiceModel.js
CHANGED
|
@@ -995,7 +995,12 @@ export default class SpiceModel {
|
|
|
995
995
|
}
|
|
996
996
|
|
|
997
997
|
if (args.skip_hooks != true) {
|
|
998
|
-
await this.run_hook(
|
|
998
|
+
await this.run_hook(
|
|
999
|
+
{ ...results, id: args.id },
|
|
1000
|
+
"delete",
|
|
1001
|
+
"after",
|
|
1002
|
+
results,
|
|
1003
|
+
);
|
|
999
1004
|
}
|
|
1000
1005
|
return {};
|
|
1001
1006
|
};
|