feat(apps): Disabling apps on trial license expiration (#29037)
Co-authored-by: Tiago Evangelista Pinto <17487063+tiagoevanp@users.noreply.github.com>pull/27866/head^2
parent
c58c91cb5e
commit
bcde1b9dee
@ -0,0 +1 @@ |
||||
import './trialExpiration'; |
||||
@ -0,0 +1,10 @@ |
||||
import { Meteor } from 'meteor/meteor'; |
||||
|
||||
import { Apps } from '../../apps'; |
||||
import { onInvalidateLicense } from '../../../app/license/server/license'; |
||||
|
||||
Meteor.startup(() => { |
||||
onInvalidateLicense(() => { |
||||
void Apps.disableApps(); |
||||
}); |
||||
}); |
||||
Loading…
Reference in new issue