From e410dece222f1e64cbf8b9b60769022de1977b3f Mon Sep 17 00:00:00 2001 From: ChengLei Shao Date: Sun, 24 Mar 2024 19:08:53 +0800 Subject: [PATCH] fix: create attachments middleware (#3794) --- .../@nocobase/plugin-file-manager/src/server/actions/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/server/actions/index.ts b/packages/plugins/@nocobase/plugin-file-manager/src/server/actions/index.ts index 05a6e31750..f6f6fb137c 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/server/actions/index.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/server/actions/index.ts @@ -2,7 +2,7 @@ import actions from '@nocobase/actions'; import { createMiddleware, destroyMiddleware } from './attachments'; export default function ({ app }) { - app.resourcer.use(createMiddleware); + app.resourcer.use(createMiddleware, { tag: 'createMiddleware', after: 'auth' }); app.resourcer.registerActionHandler('upload', actions.create); app.resourcer.use(destroyMiddleware);