Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Sep 28, 2023
1 parent f926d52 commit 37273bb
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions apps/meteor/ee/app/license/server/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,13 @@ settings.watch<string>('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');
Expand Down

0 comments on commit 37273bb

Please sign in to comment.