mirror of
https://github.com/logto-io/logto.git
synced 2025-01-06 20:40:08 -05:00
feat(core): support searching organization by id
This commit is contained in:
parent
2bf7d784bf
commit
48c0e028af
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ export default function organizationRoutes<T extends AuthedRouter>(...args: Rout
|
|||
}),
|
||||
async (ctx, next) => {
|
||||
const { query } = ctx.guard;
|
||||
const search = parseSearchOptions(['name'], query);
|
||||
const search = parseSearchOptions(['id', 'name'], query);
|
||||
const { limit, offset } = ctx.pagination;
|
||||
const [count, entities] = await organizations.findAll(limit, offset, search);
|
||||
|
||||
|
|
Loading…
Reference in a new issue