Add __v and __id

This commit is contained in:
Daniel Hougaard
2024-01-29 16:04:52 +04:00
parent 9563c09951
commit 3eba4815c8
@@ -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(),