From cf1070c65eb281ab00007b7d87d1790e9d0b6a5a Mon Sep 17 00:00:00 2001 From: Sheen Capadngan Date: Wed, 11 Dec 2024 17:56:30 +0800 Subject: [PATCH] misc: moved integration auth to params --- backend/src/server/routes/v1/integration-auth-router.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/server/routes/v1/integration-auth-router.ts b/backend/src/server/routes/v1/integration-auth-router.ts index 5e652283c..e00e06b77 100644 --- a/backend/src/server/routes/v1/integration-auth-router.ts +++ b/backend/src/server/routes/v1/integration-auth-router.ts @@ -97,7 +97,7 @@ export const registerIntegrationAuthRouter = async (server: FastifyZodProvider) bearerAuth: [] } ], - querystring: z.object({ + params: z.object({ integrationAuthId: z.string().trim().describe(INTEGRATION_AUTH.UPDATE_BY_ID.integrationAuthId) }), body: z.object({ @@ -126,7 +126,7 @@ export const registerIntegrationAuthRouter = async (server: FastifyZodProvider) actor: req.permission.type, actorAuthMethod: req.permission.authMethod, actorOrgId: req.permission.orgId, - integrationAuthId: req.query.integrationAuthId, + integrationAuthId: req.params.integrationAuthId, ...req.body });