mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2026-09-25 11:30:42 +02:00
refactor(core): Remove deprecated properties from orchestration service (#11251)
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import { InstanceSettings } from 'n8n-core';
|
||||
|
||||
import { ActiveWorkflowManager } from '@/active-workflow-manager';
|
||||
import { WorkflowRepository } from '@/databases/repositories/workflow.repository';
|
||||
import { Get, RestController } from '@/decorators';
|
||||
@@ -9,6 +11,7 @@ export class DebugController {
|
||||
private readonly orchestrationService: OrchestrationService,
|
||||
private readonly activeWorkflowManager: ActiveWorkflowManager,
|
||||
private readonly workflowRepository: WorkflowRepository,
|
||||
private readonly instanceSettings: InstanceSettings,
|
||||
) {}
|
||||
|
||||
@Get('/multi-main-setup', { skipAuth: true })
|
||||
@@ -24,9 +27,9 @@ export class DebugController {
|
||||
const activationErrors = await this.activeWorkflowManager.getAllWorkflowActivationErrors();
|
||||
|
||||
return {
|
||||
instanceId: this.orchestrationService.instanceId,
|
||||
instanceId: this.instanceSettings.instanceId,
|
||||
leaderKey,
|
||||
isLeader: this.orchestrationService.isLeader,
|
||||
isLeader: this.instanceSettings.isLeader,
|
||||
activeWorkflows: {
|
||||
webhooks, // webhook-based active workflows
|
||||
triggersAndPollers, // poller- and trigger-based active workflows
|
||||
|
||||
Reference in New Issue
Block a user