This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user