add missing await
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user