mirror of
https://github.com/fosrl/pangolin.git
synced 2026-04-29 12:19:43 +00:00
used zod codemod
This commit is contained in:
parent
000904eb31
commit
7db99a7dd5
191 changed files with 764 additions and 1232 deletions
|
|
@ -10,17 +10,13 @@ import logger from "@server/logger";
|
|||
import { fromError } from "zod-validation-error";
|
||||
import { OpenAPITags, registry } from "@server/openApi";
|
||||
|
||||
const updateUser2FAParamsSchema = z
|
||||
.object({
|
||||
const updateUser2FAParamsSchema = z.strictObject({
|
||||
userId: z.string()
|
||||
})
|
||||
.strict();
|
||||
});
|
||||
|
||||
const updateUser2FABodySchema = z
|
||||
.object({
|
||||
const updateUser2FABodySchema = z.strictObject({
|
||||
twoFactorSetupRequested: z.boolean()
|
||||
})
|
||||
.strict();
|
||||
});
|
||||
|
||||
export type UpdateUser2FAResponse = {
|
||||
userId: string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue