From cd5a39202f8e41d8c099b66cf9c256b1277bd258 Mon Sep 17 00:00:00 2001 From: gchust Date: Wed, 18 Sep 2024 17:15:58 +0800 Subject: [PATCH] fix: missing context in export action (#5286) --- .../plugin-action-export/src/server/actions/export-xlsx.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugins/@nocobase/plugin-action-export/src/server/actions/export-xlsx.ts b/packages/plugins/@nocobase/plugin-action-export/src/server/actions/export-xlsx.ts index 69b6eba309..a9c42d40fb 100644 --- a/packages/plugins/@nocobase/plugin-action-export/src/server/actions/export-xlsx.ts +++ b/packages/plugins/@nocobase/plugin-action-export/src/server/actions/export-xlsx.ts @@ -43,7 +43,7 @@ async function exportXlsxAction(ctx: Context, next: Next) { }, }); - const wb = await xlsxExporter.run(); + const wb = await xlsxExporter.run(ctx); ctx.body = XLSX.write(wb, { type: 'buffer', bookType: 'xlsx' });