diff --git a/server/routes/user.ts b/server/routes/user.ts index 7c3c237..5f87fe7 100644 --- a/server/routes/user.ts +++ b/server/routes/user.ts @@ -20,9 +20,9 @@ export default function (fastify: FastifyInstance) { try { const schema = z.object({ - toggleInputHotkey: z.string(), - toggleOutputHotkey: z.string(), - volumes: z.record(z.string(), z.number()), + toggleInputHotkey: z.string().optional(), + toggleOutputHotkey: z.string().optional(), + volumes: z.record(z.string(), z.number()).optional(), }) const input = schema.parse(req.body)