appstore and support: async'ify
This commit is contained in:
@@ -314,10 +314,10 @@ function setDashboardDomain(domain, auditSource, callback) {
|
||||
|
||||
const fqdn = dns.fqdn(constants.DASHBOARD_LOCATION, domainObject);
|
||||
|
||||
settings.setDashboardLocation(domain, fqdn, function (error) {
|
||||
settings.setDashboardLocation(domain, fqdn, async function (error) {
|
||||
if (error) return callback(error);
|
||||
|
||||
appstore.updateCloudron({ domain }, NOOP_CALLBACK);
|
||||
await safe(appstore.updateCloudron({ domain }));
|
||||
|
||||
eventlog.add(eventlog.ACTION_DASHBOARD_DOMAIN_UPDATE, auditSource, { domain, fqdn });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user