From 1272523b12933463fa80377eddc2cb2ffe970e2e Mon Sep 17 00:00:00 2001 From: chenos Date: Sat, 28 Jan 2023 19:07:04 +0800 Subject: [PATCH] fix: missing context --- packages/core/actions/src/actions/list.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/actions/src/actions/list.ts b/packages/core/actions/src/actions/list.ts index 0ee7e3b199..4e61dfc107 100644 --- a/packages/core/actions/src/actions/list.ts +++ b/packages/core/actions/src/actions/list.ts @@ -50,7 +50,7 @@ async function listWithPagination(ctx: Context) { async function listWithNonPaged(ctx: Context) { const repository = getRepositoryFromParams(ctx); - const rows = await repository.find(findArgs(ctx.action.params)); + const rows = await repository.find({ context: ctx, ...findArgs(ctx.action.params) }); ctx.body = rows; }