diff --git a/src/routes/settings/index.json.ts b/src/routes/settings/index.json.ts index 163877fb0..db3dc0710 100644 --- a/src/routes/settings/index.json.ts +++ b/src/routes/settings/index.json.ts @@ -66,15 +66,10 @@ export const post: RequestHandler = async (event) => { const { fqdn, isRegistrationEnabled, dualCerts, minPort, maxPort } = await event.request.json(); try { const { id } = await db.listSettings(); - if (isRegistrationEnabled) { - await db.prisma.setting.update({ where: { id }, data: { isRegistrationEnabled } }); - } + await db.prisma.setting.update({ where: { id }, data: { isRegistrationEnabled, dualCerts } }); if (fqdn) { await db.prisma.setting.update({ where: { id }, data: { fqdn } }); } - if (dualCerts) { - await db.prisma.setting.update({ where: { id }, data: { dualCerts } }); - } if (minPort && maxPort) { await db.prisma.setting.update({ where: { id }, data: { minPort, maxPort } }); }