mirror of
https://github.com/fosrl/pangolin.git
synced 2026-09-16 07:40:04 +02:00
Add license tiers
This commit is contained in:
@@ -45,9 +45,9 @@ export class JobScheduler {
|
||||
label: string
|
||||
): () => Promise<void> {
|
||||
return async () => {
|
||||
if (!(await license.isUnlocked())) {
|
||||
if (!(await license.hasTier(["personal", "tier2", "enterprise"]))) {
|
||||
logger.debug(
|
||||
`Skipping ${label} tick - license is not subscribed`
|
||||
`Skipping ${label} tick - requires a tier2 license`
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user