fix: missing context
This commit is contained in:
parent
25861221ec
commit
1272523b12
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user