move sync_dns out of cloudron route into domains

This commit is contained in:
Girish Ramakrishnan
2023-08-04 12:53:11 +05:30
parent a4c3d39cc3
commit a49cb0b080
6 changed files with 27 additions and 25 deletions

View File

@@ -17,7 +17,6 @@ exports = module.exports = {
setDashboardDomain,
updateDashboardDomain,
renewCerts,
syncDnsRecords,
updateDiskUsage,
@@ -331,14 +330,6 @@ async function setupDnsAndCert(subdomain, domain, auditSource, progressCallback)
await reverseProxy.ensureCertificate(location, {}, auditSource);
}
async function syncDnsRecords(options) {
assert.strictEqual(typeof options, 'object');
const taskId = await tasks.add(tasks.TASK_SYNC_DNS_RECORDS, [ options ]);
tasks.startTask(taskId, {});
return taskId;
}
async function updateDiskUsage() {
const taskId = await tasks.add(tasks.TASK_UPDATE_DISK_USAGE, []);
tasks.startTask(taskId, {});