Set dns record id for alternateDomains

This commit is contained in:
Johannes Zellner
2018-06-29 18:43:42 +02:00
parent 1eba79660e
commit 262fe18fb2
2 changed files with 17 additions and 3 deletions

View File

@@ -343,10 +343,8 @@ function registerAlternateDomains(app, overwrite, callback) {
}, function (error, result) {
if (error || result instanceof Error) return callback(error || result);
// TODO we need to stash this into the subdomains table instead of apps table
// dnsRecordId tracks whether we created this DNS record so that we can unregister later
// updateApp(app, { dnsRecordId: result }, callback);
callback();
appdb.setSubdomainDnsRecordId(domain.domain, domain.subdomain, result, callback);
});
}, callback);
});