mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
refactor(core): Use an IoC container to manage singleton classes [Part-2] (no-changelog) (#5690)
* use typedi for UserManagementMailer * use typedi for SamlService * fix typos * use typedi for Queue * use typedi for License * convert some more code to use typedi
This commit is contained in:
committed by
GitHub
parent
c07f838ce6
commit
9bd7529193
@@ -3,6 +3,13 @@ import { CliWorkflowOperationError, SubworkflowOperationError } from 'n8n-workfl
|
||||
import type { INode } from 'n8n-workflow';
|
||||
import { START_NODES } from './constants';
|
||||
|
||||
/**
|
||||
* Returns if the given id is a valid workflow id
|
||||
*/
|
||||
export function isWorkflowIdValid(id: string | null | undefined): boolean {
|
||||
return !(typeof id === 'string' && isNaN(parseInt(id, 10)));
|
||||
}
|
||||
|
||||
function findWorkflowStart(executionMode: 'integrated' | 'cli') {
|
||||
return function (nodes: INode[]) {
|
||||
const executeWorkflowTriggerNode = nodes.find(
|
||||
|
||||
Reference in New Issue
Block a user