mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-06 15:06:21 +00:00
used zod codemod
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user