From 2cbc75d7e310e329bdb6b76c6fa2c781c9ab27a2 Mon Sep 17 00:00:00 2001 From: opti1337 Date: Thu, 25 Dec 2025 21:24:41 +0600 Subject: [PATCH] user preferences --- server/routes/user.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)