spice-js 2.7.27 → 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
|
});
|
|
@@ -146,7 +146,7 @@ class RestHelper {
|
|
|
146
146
|
var urlColumnsMatch = rawUrl.match(/[?&]columns=([^&]*)/);
|
|
147
147
|
var requestedColumns = urlColumnsMatch ? decodeURIComponent(urlColumnsMatch[1]) : null;
|
|
148
148
|
if (requestedColumns) {
|
|
149
|
-
var specs = requestedColumns.split(",").map(c => c.trim()).filter(c => c !== "");
|
|
149
|
+
var specs = requestedColumns.split(",").map(c => c.trim().replace(/`/g, "")).filter(c => c !== "");
|
|
150
150
|
var filtered = [];
|
|
151
151
|
for (var spec of specs) {
|
|
152
152
|
if (!spec.includes(".")) {
|
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
|
};
|
|
@@ -134,7 +134,7 @@ export default class RestHelper {
|
|
|
134
134
|
if (requestedColumns) {
|
|
135
135
|
const specs = requestedColumns
|
|
136
136
|
.split(",")
|
|
137
|
-
.map((c) => c.trim())
|
|
137
|
+
.map((c) => c.trim().replace(/`/g, ""))
|
|
138
138
|
.filter((c) => c !== "");
|
|
139
139
|
const filtered = [];
|
|
140
140
|
for (const spec of specs) {
|