From 37273bb7b8c0bd8722ced38bdf570b36662e972a Mon Sep 17 00:00:00 2001 From: Guilherme Gazzo Date: Thu, 28 Sep 2023 13:20:32 -0300 Subject: [PATCH] .. --- apps/meteor/ee/app/license/server/settings.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/apps/meteor/ee/app/license/server/settings.ts b/apps/meteor/ee/app/license/server/settings.ts index e11e1bd2bdb9..1bec7126ae85 100644 --- a/apps/meteor/ee/app/license/server/settings.ts +++ b/apps/meteor/ee/app/license/server/settings.ts @@ -29,9 +29,13 @@ settings.watch('Enterprise_License', async (license) => { return; } - if (!(await License.setLicense(license))) { - await Settings.updateValueById('Enterprise_License_Status', 'Invalid'); - return; + try { + if (!(await License.setLicense(license))) { + await Settings.updateValueById('Enterprise_License_Status', 'Invalid'); + return; + } + } catch (_error) { + // do nothing } await Settings.updateValueById('Enterprise_License_Status', 'Valid');