Zod 4 마이그레이션

This commit is contained in:
static
2025-12-25 22:53:51 +09:00
parent 6d95059450
commit b92b4a0b1b
13 changed files with 655 additions and 853 deletions

View File

@@ -26,8 +26,8 @@ const clientRouter = router({
register: roleProcedure["notClient"]
.input(
z.object({
encPubKey: z.string().base64().nonempty(),
sigPubKey: z.string().base64().nonempty(),
encPubKey: z.base64().nonempty(),
sigPubKey: z.base64().nonempty(),
}),
)
.mutation(async ({ ctx, input }) => {
@@ -66,8 +66,8 @@ const clientRouter = router({
verify: roleProcedure["notClient"]
.input(
z.object({
id: z.number().int().positive(),
answerSig: z.string().base64().nonempty(),
id: z.int().positive(),
answerSig: z.base64().nonempty(),
}),
)
.mutation(async ({ ctx, input }) => {