mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-04 04:26:11 +00:00
Add __v and __id
This commit is contained in:
@@ -38,7 +38,12 @@ export const sanitizedServiceTokenUserSchema = UsersSchema.pick({
|
|||||||
firstName: true,
|
firstName: true,
|
||||||
lastName: true,
|
lastName: true,
|
||||||
mfaMethods: true
|
mfaMethods: true
|
||||||
});
|
}).merge(
|
||||||
|
z.object({
|
||||||
|
__v: z.number().default(0),
|
||||||
|
_id: z.string()
|
||||||
|
})
|
||||||
|
);
|
||||||
|
|
||||||
export const secretRawSchema = z.object({
|
export const secretRawSchema = z.object({
|
||||||
id: z.string(),
|
id: z.string(),
|
||||||
|
|||||||
Reference in New Issue
Block a user