diff --git a/.changeset/eighty-items-behave.md b/.changeset/eighty-items-behave.md deleted file mode 100644 index db8bc26e564..00000000000 --- a/.changeset/eighty-items-behave.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@rocket.chat/meteor": patch ---- - -Adds missing readjustment to private apps restrictions on license removal diff --git a/apps/meteor/ee/server/startup/apps/trialExpiration.ts b/apps/meteor/ee/server/startup/apps/trialExpiration.ts index 46ccac7ee81..e6bb9e47c74 100644 --- a/apps/meteor/ee/server/startup/apps/trialExpiration.ts +++ b/apps/meteor/ee/server/startup/apps/trialExpiration.ts @@ -1,12 +1,9 @@ import { License } from '@rocket.chat/license'; import { Meteor } from 'meteor/meteor'; -Meteor.startup(async () => { - const { Apps } = await import('../../apps'); - License.onInvalidateLicense(() => { - void Apps.disableApps(); - }); - License.onRemoveLicense(() => { +Meteor.startup(() => { + License.onInvalidateLicense(async () => { + const { Apps } = await import('../../apps'); void Apps.disableApps(); }); });