From 48c0e028afa2f0996d937bb3aae536f4abe00714 Mon Sep 17 00:00:00 2001 From: Charles Zhao Date: Tue, 7 Nov 2023 15:52:44 +0800 Subject: [PATCH] feat(core): support searching organization by id --- packages/core/src/routes/organization/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/routes/organization/index.ts b/packages/core/src/routes/organization/index.ts index 68eff94db..30eb86cf1 100644 --- a/packages/core/src/routes/organization/index.ts +++ b/packages/core/src/routes/organization/index.ts @@ -62,7 +62,7 @@ export default function organizationRoutes(...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);