move dashboard change routes under dashboard/

This commit is contained in:
Girish Ramakrishnan
2023-08-13 10:06:01 +05:30
parent 7b32cb16f3
commit e723c3c19b
9 changed files with 134 additions and 135 deletions

View File

@@ -24,9 +24,9 @@ exports = module.exports = {
const assert = require('assert'),
BoxError = require('./boxerror.js'),
cloudron = require('./cloudron.js'),
constants = require('./constants.js'),
crypto = require('crypto'),
dashboard = require('./dashboard.js'),
debug = require('debug')('box:mailserver'),
dns = require('./dns.js'),
docker = require('./docker.js'),
@@ -270,7 +270,7 @@ async function changeLocation(auditSource, progressCallback) {
let progress = 20;
progressCallback({ percent: progress, message: `Setting up DNS of certs of mail server ${fqdn}` });
await cloudron.setupDnsAndCert(subdomain, domain, auditSource, (progress) => progressCallback({ message: progress.message })); // remove the percent
await dashboard.setupDnsAndCert(subdomain, domain, auditSource, (progress) => progressCallback({ message: progress.message })); // remove the percent
const allDomains = await domains.list();
for (let idx = 0; idx < allDomains.length; idx++) {