From b4582a53f1091c151ac3c9b72cfbebfb8e3463be Mon Sep 17 00:00:00 2001 From: Jannis Braun <151788261+TheZwiss@users.noreply.github.com> Date: Wed, 25 Mar 2026 04:05:48 +0100 Subject: [PATCH] feat: wire allowCustomBitrate through rowToLimits and PATCH handler in settings route --- packages/server/src/routes/settings.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/server/src/routes/settings.ts b/packages/server/src/routes/settings.ts index f02ceb59..13957055 100644 --- a/packages/server/src/routes/settings.ts +++ b/packages/server/src/routes/settings.ts @@ -32,6 +32,7 @@ function rowToLimits(row: typeof schema.instanceSettings.$inferSelect): Instance return Object.keys(parsed).length > 0 ? parsed as Record : null; } catch { return null; } })(), + allowCustomBitrate: row.allowCustomBitrate === 1, }; } @@ -119,6 +120,10 @@ export async function settingsRoutes(app: FastifyInstance): Promise { updateData.discoveryEnabled = body.discoveryEnabled ? 1 : 0; } + if (body.allowCustomBitrate !== undefined) { + updateData.allowCustomBitrate = body.allowCustomBitrate ? 1 : 0; + } + if (body.bitrateMatrixOverrides !== undefined) { if (body.bitrateMatrixOverrides === null) { updateData.bitrateMatrixOverrides = null;