Merge pull request #255 from coollabsio/v2.2.5

v2.2.5
This commit is contained in:
Andras Bacsai 2022-03-31 17:47:46 +02:00 committed by GitHub
commit 72ceeff022
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 7 deletions

View File

@ -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",

View File

@ -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 } });
}