From 96aef5c4a61d423006bebbe12bca36bfc68b364c Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 31 Mar 2022 17:45:04 +0200 Subject: [PATCH 1/2] fix: registration enabled/disabled --- src/routes/settings/index.json.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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 } }); } From 54d65ec011a071a7a1430c0738499c29b6b523f1 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 31 Mar 2022 17:45:20 +0200 Subject: [PATCH 2/2] chore: Version++ --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index da0cf4f9f..89b194a51 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "coolify", "description": "An open-source & self-hostable Heroku / Netlify alternative.", - "version": "2.2.4", + "version": "2.2.5", "license": "AGPL-3.0", "scripts": { "dev": "docker-compose -f docker-compose-dev.yaml up -d && NODE_ENV=development svelte-kit dev",