diff --git a/src/lib/database/checks.ts b/src/lib/database/checks.ts index 38ddc96b9..7cc066605 100644 --- a/src/lib/database/checks.ts +++ b/src/lib/database/checks.ts @@ -22,15 +22,15 @@ export async function isSecretExists({ id, name }) { export async function isDomainConfigured({ id, fqdn }) { const domain = getDomain(fqdn); const foundApp = await prisma.application.findFirst({ - where: { fqdn: { endsWith: domain }, id: { not: id } }, + where: { fqdn: { endsWith: `//${domain}` }, id: { not: id } }, select: { fqdn: true } }); const foundService = await prisma.service.findFirst({ - where: { fqdn: { endsWith: domain }, id: { not: id } }, + where: { fqdn: { endsWith: `//${domain}` }, id: { not: id } }, select: { fqdn: true } }); const coolifyFqdn = await prisma.setting.findFirst({ - where: { fqdn: { endsWith: domain }, id: { not: id } }, + where: { fqdn: { endsWith: `//${domain}` }, id: { not: id } }, select: { fqdn: true } }); if (foundApp || foundService || coolifyFqdn) return true; diff --git a/src/lib/queues/proxy.ts b/src/lib/queues/proxy.ts index 9ab34af34..7a894d446 100644 --- a/src/lib/queues/proxy.ts +++ b/src/lib/queues/proxy.ts @@ -63,7 +63,5 @@ export default async function () { } catch (error) { console.log(error); throw error; - } finally { - // await reloadHaproxy('/var/run/docker.sock'); } }