mirror of
https://github.com/logto-io/logto.git
synced 2025-03-31 22:51:25 -05:00
Merge pull request #4834 from logto-io/charles-log-7417-support-searching-organization-by-id
feat(core): support searching organization by id
This commit is contained in:
commit
414604838d
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…
Add table
Reference in a new issue