Add missing await
This commit is contained in:
@@ -277,7 +277,7 @@ async function prepareDashboardDomain(domain, auditSource) {
|
||||
|
||||
const fqdn = dns.fqdn(constants.DASHBOARD_LOCATION, domainObject);
|
||||
|
||||
const result = apps.list();
|
||||
const result = await apps.list();
|
||||
const conflict = result.filter(app => app.fqdn === fqdn);
|
||||
if (conflict.length) throw new BoxError(BoxError.BAD_STATE, 'Dashboard location conflicts with an existing app');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user