fix: revert last change with domain check

This commit is contained in:
Andras Bacsai 2022-09-07 09:15:03 +02:00
parent 2f772080b8
commit 05a1721499
2 changed files with 1 additions and 3 deletions

View File

@ -525,9 +525,7 @@ export async function checkDomain(request: FastifyRequest<CheckDomain>) {
} }
export async function checkDNS(request: FastifyRequest<CheckDNS>) { export async function checkDNS(request: FastifyRequest<CheckDNS>) {
try { try {
const { id } = request.params const { id } = request.params
let { exposePort, fqdn, forceSave, dualCerts } = request.body let { exposePort, fqdn, forceSave, dualCerts } = request.body
if (!fqdn) { if (!fqdn) {
return {} return {}

View File

@ -218,7 +218,7 @@
if (loading) return; if (loading) return;
loading = true; loading = true;
try { try {
nonWWWDomain = application.fqdn != null && getDomain(application.fqdn).replace(/^www\./, ''); nonWWWDomain = application.fqdn && getDomain(application.fqdn).replace(/^www\./, '');
if (application.deploymentType) if (application.deploymentType)
application.deploymentType = application.deploymentType.toLowerCase(); application.deploymentType = application.deploymentType.toLowerCase();
!isBot && !isBot &&