mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 09:28:06 +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(
|
200: ServiceTokensSchema.merge(
|
||||||
z.object({
|
z.object({
|
||||||
workspace: z.string(),
|
workspace: z.string(),
|
||||||
user: sanitizedServiceTokenUserSchema,
|
user: sanitizedServiceTokenUserSchema.merge(
|
||||||
|
z.object({
|
||||||
|
_id: z.string(),
|
||||||
|
__v: z.number().default(0)
|
||||||
|
})
|
||||||
|
),
|
||||||
_id: z.string(),
|
_id: z.string(),
|
||||||
__v: z.number().default(0)
|
__v: z.number().default(0)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user