adminforth 1.2.26 → 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.
@@ -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, adminUser } = body;
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` };
@@ -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, adminUser } = body;
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` };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "1.2.26",
3
+ "version": "1.2.28",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,10 +25,10 @@
25
25
  "mongodb": "6.6",
26
26
  "node-fetch": "^3.3.2",
27
27
  "pg": "^8.11.5",
28
- "uuid": "^9.0.1"
28
+ "uuid": "^9.0.1",
29
+ "@clickhouse/client": "^1.4.0"
29
30
  },
30
31
  "devDependencies": {
31
- "@clickhouse/client": "^1.4.0",
32
32
  "@types/node": "^20.14.2",
33
33
  "typescript": "^5.4.5"
34
34
  }