diff --git a/.changeset/eighty-items-behave.md b/.changeset/eighty-items-behave.md new file mode 100644 index 000000000000..db8bc26e564f --- /dev/null +++ b/.changeset/eighty-items-behave.md @@ -0,0 +1,5 @@ +--- +"@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 e6bb9e47c749..46ccac7ee810 100644 --- a/apps/meteor/ee/server/startup/apps/trialExpiration.ts +++ b/apps/meteor/ee/server/startup/apps/trialExpiration.ts @@ -1,9 +1,12 @@ import { License } from '@rocket.chat/license'; import { Meteor } from 'meteor/meteor'; -Meteor.startup(() => { - License.onInvalidateLicense(async () => { - const { Apps } = await import('../../apps'); +Meteor.startup(async () => { + const { Apps } = await import('../../apps'); + License.onInvalidateLicense(() => { + void Apps.disableApps(); + }); + License.onRemoveLicense(() => { void Apps.disableApps(); }); });