add missing await

This commit is contained in:
Girish Ramakrishnan
2021-11-17 09:38:01 -08:00
parent 1c8e699a71
commit cd302a7621

View File

@@ -1242,7 +1242,7 @@ async function install(data, auditSource) {
const domainObjectMap = await validateLocations(locations);
if (settings.isDemo() && getCount() >= constants.DEMO_APP_LIMIT) throw new BoxError(BoxError.BAD_STATE, 'Too many installed apps, please uninstall a few and try again');
if (settings.isDemo() && (await getCount() >= constants.DEMO_APP_LIMIT)) throw new BoxError(BoxError.BAD_STATE, 'Too many installed apps, please uninstall a few and try again');
const appId = uuid.v4();
debug('Will install app with id : ' + appId);