Skip to content

Commit

Permalink
misc: moved integration auth to params
Browse files Browse the repository at this point in the history
  • Loading branch information
sheensantoscapadngan committed Dec 11, 2024
1 parent e32716c commit cf1070c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/server/routes/v1/integration-auth-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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
});

Expand Down

0 comments on commit cf1070c

Please sign in to comment.