fix: missing context

This commit is contained in:
chenos 2023-01-28 19:07:04 +08:00
parent 25861221ec
commit 1272523b12

View File

@ -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;
}