Skip to content

Commit

Permalink
Merge pull request #4834 from logto-io/charles-log-7417-support-searc…
Browse files Browse the repository at this point in the history
…hing-organization-by-id

feat(core): support searching organization by id
  • Loading branch information
charIeszhao authored Nov 8, 2023
2 parents 10a370b + 48c0e02 commit 4146048
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/routes/organization/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 4146048

Please sign in to comment.