mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 11:22:15 +00:00
refactor(core): Move active workflows endpoints to a decorated controller class (no-changelog) (#8101)
This is a continuation of migrating all rest endpoints to decorated controller classes
This commit is contained in:
committed by
GitHub
parent
39e45d8b92
commit
021add0f39
@@ -1,3 +1,4 @@
|
||||
import { Service } from 'typedi';
|
||||
import { CronJob } from 'cron';
|
||||
|
||||
import type {
|
||||
@@ -22,10 +23,9 @@ import {
|
||||
|
||||
import type { IWorkflowData } from './Interfaces';
|
||||
|
||||
@Service()
|
||||
export class ActiveWorkflows {
|
||||
private activeWorkflows: {
|
||||
[workflowId: string]: IWorkflowData;
|
||||
} = {};
|
||||
private activeWorkflows: { [workflowId: string]: IWorkflowData } = {};
|
||||
|
||||
/**
|
||||
* Returns if the workflow is active in memory.
|
||||
|
||||
Reference in New Issue
Block a user