This commit is contained in:
@@ -20,9 +20,9 @@ export default function (fastify: FastifyInstance) {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const schema = z.object({
|
const schema = z.object({
|
||||||
toggleInputHotkey: z.string(),
|
toggleInputHotkey: z.string().optional(),
|
||||||
toggleOutputHotkey: z.string(),
|
toggleOutputHotkey: z.string().optional(),
|
||||||
volumes: z.record(z.string(), z.number()),
|
volumes: z.record(z.string(), z.number()).optional(),
|
||||||
})
|
})
|
||||||
const input = schema.parse(req.body)
|
const input = schema.parse(req.body)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user