mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-09 20:28:31 +00:00
Update service-token-router.ts
This commit is contained in:
@@ -25,7 +25,12 @@ export const registerServiceTokenRouter = async (server: FastifyZodProvider) =>
|
||||
200: ServiceTokensSchema.merge(
|
||||
z.object({
|
||||
workspace: z.string(),
|
||||
user: sanitizedServiceTokenUserSchema,
|
||||
user: sanitizedServiceTokenUserSchema.merge(
|
||||
z.object({
|
||||
_id: z.string(),
|
||||
__v: z.number().default(0)
|
||||
})
|
||||
),
|
||||
_id: z.string(),
|
||||
__v: z.number().default(0)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user