Revert "fix: Private apps restrictions are not applied on license removal (#3…" (#33409)

This reverts commit 6c43d22c8a.
pull/33628/head
Matheus Barbosa Silva 1 year ago committed by Guilherme Gazzo
parent c5b0c98803
commit 06e68a73f8
  1. 5
      .changeset/eighty-items-behave.md
  2. 9
      apps/meteor/ee/server/startup/apps/trialExpiration.ts

@ -1,5 +0,0 @@
---
"@rocket.chat/meteor": patch
---
Adds missing readjustment to private apps restrictions on license removal

@ -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();
});
});

Loading…
Cancel
Save