mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2026-08-05 11:28:36 +02:00
refactor(core): Move license endpoints to a decorated controller class (no-changelog) (#8074)
This commit is contained in:
@@ -21,4 +21,11 @@ export class WorkflowRepository extends Repository<WorkflowEntity> {
|
||||
relations: ['shared', 'shared.user', 'shared.user.globalRole', 'shared.role'],
|
||||
});
|
||||
}
|
||||
|
||||
async getActiveTriggerCount() {
|
||||
const totalTriggerCount = await this.sum('triggerCount', {
|
||||
active: true,
|
||||
});
|
||||
return totalTriggerCount ?? 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user