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;