...
 
Commits (2)
{
"name": "@rocket.chat/apps-engine",
"version": "1.5.1",
"version": "1.5.2",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
......
{
"name": "@rocket.chat/apps-engine",
"version": "1.5.1",
"version": "1.5.2",
"description": "The engine code for the Rocket.Chat Apps which manages, runs, translates, coordinates and all of that.",
"main": "index",
"typings": "index",
......
This diff is collapsed.
......@@ -25,9 +25,17 @@ export class AppLicenseManager {
validationResult.setValidated(true);
const encryptedLicense = appMarketplaceInfo.subscriptionInfo.license.license;
if (!encryptedLicense) {
validationResult.addError('license', 'License for app is invalid');
throw new InvalidLicenseError(validationResult);
}
let license;
try {
license = await this.crypto.decryptLicense(appMarketplaceInfo.subscriptionInfo.license.license) as any;
license = await this.crypto.decryptLicense(encryptedLicense) as any;
} catch (err) {
validationResult.addError('publicKey', err.message);
......