adminforth 1.2.27 → 1.2.28
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/dist/modules/restApi.js +2 -3
- package/modules/restApi.ts +2 -3
- package/package.json +1 -1
package/dist/modules/restApi.js
CHANGED
|
@@ -607,9 +607,8 @@ export default class AdminForthRestAPI {
|
|
|
607
607
|
server.endpoint({
|
|
608
608
|
method: 'POST',
|
|
609
609
|
path: '/start_bulk_action',
|
|
610
|
-
handler: (_11) => __awaiter(this, [_11], void 0, function* ({ body }) {
|
|
611
|
-
const { resourceId, actionId, recordIds
|
|
612
|
-
process.env.HEAVY_DEBUG && console.log('🪲 starting bulk action', body);
|
|
610
|
+
handler: (_11) => __awaiter(this, [_11], void 0, function* ({ body, adminUser }) {
|
|
611
|
+
const { resourceId, actionId, recordIds } = body;
|
|
613
612
|
const resource = this.adminforth.config.resources.find((res) => res.resourceId == resourceId);
|
|
614
613
|
if (!resource) {
|
|
615
614
|
return { error: `Resource '${resourceId}' not found` };
|
package/modules/restApi.ts
CHANGED
|
@@ -695,9 +695,8 @@ export default class AdminForthRestAPI {
|
|
|
695
695
|
server.endpoint({
|
|
696
696
|
method: 'POST',
|
|
697
697
|
path: '/start_bulk_action',
|
|
698
|
-
handler: async ({ body }) => {
|
|
699
|
-
const { resourceId, actionId, recordIds
|
|
700
|
-
process.env.HEAVY_DEBUG && console.log('🪲 starting bulk action', body);
|
|
698
|
+
handler: async ({ body, adminUser }) => {
|
|
699
|
+
const { resourceId, actionId, recordIds } = body;
|
|
701
700
|
const resource = this.adminforth.config.resources.find((res) => res.resourceId == resourceId);
|
|
702
701
|
if (!resource) {
|
|
703
702
|
return { error: `Resource '${resourceId}' not found` };
|