@rocket.chat/apps-engine
Advanced tools
Comparing version 0.5.7 to 0.5.8
{ | ||
"name": "@rocket.chat/apps-engine", | ||
"version": "0.5.7", | ||
"version": "0.5.8", | ||
"description": "The engine code for the Rocket.Chat Apps which manages, runs, translates, coordinates and all of that.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -134,4 +134,5 @@ "use strict"; | ||
// Now let's enable the apps which were once enabled | ||
// but are not currently disabled. | ||
for (const rl of this.apps.values()) { | ||
if (AppStatus_1.AppStatusUtils.isEnabled(rl.getPreviousStatus())) { | ||
if (!AppStatus_1.AppStatusUtils.isDisabled(rl.getStatus()) && AppStatus_1.AppStatusUtils.isEnabled(rl.getPreviousStatus())) { | ||
yield this.enableApp(items.get(rl.getID()), rl, true, rl.getPreviousStatus() === AppStatus_1.AppStatus.MANUALLY_ENABLED); | ||
@@ -193,4 +194,7 @@ } | ||
if (AppStatus_1.AppStatusUtils.isEnabled(rl.getStatus())) { | ||
throw new Error(`The App with the id "${id}" is already enabled.`); | ||
throw new Error('The App is already enabled.'); | ||
} | ||
if (rl.getStatus() === AppStatus_1.AppStatus.COMPILER_ERROR_DISABLED) { | ||
throw new Error('The App had compiler errors, can not enable it.'); | ||
} | ||
const storageItem = yield this.storage.retrieveOne(id); | ||
@@ -197,0 +201,0 @@ if (!storageItem) { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
421734
4261