mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 18:41:14 +00:00
refactor(core): Update tag endpoints to use DTOs and injectable config (#12380)
This commit is contained in:
@@ -42,7 +42,6 @@ import type {
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { ActiveExecutions } from '@/active-executions';
|
||||
import config from '@/config';
|
||||
import { CredentialsHelper } from '@/credentials-helper';
|
||||
import { ExecutionRepository } from '@/databases/repositories/execution.repository';
|
||||
import type { AiEventMap, AiEventPayload } from '@/events/maps/ai.event-map';
|
||||
@@ -734,7 +733,7 @@ export async function getWorkflowData(
|
||||
|
||||
let workflowData: IWorkflowBase | null;
|
||||
if (workflowInfo.id !== undefined) {
|
||||
const relations = config.getEnv('workflowTagsDisabled') ? [] : ['tags'];
|
||||
const relations = Container.get(GlobalConfig).tags.disabled ? [] : ['tags'];
|
||||
|
||||
workflowData = await Container.get(WorkflowRepository).get(
|
||||
{ id: workflowInfo.id },
|
||||
|
||||
Reference in New Issue
Block a user