Add missing await

This commit is contained in:
Girish Ramakrishnan
2021-08-30 14:00:50 -07:00
parent 7d8cca0ed4
commit 6dfb328532

View File

@@ -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');