refactor: Forbid access to workflows when enterprise features is unavailable (#4635) (no-changelog)

* refactor: Forbid access to workflows when enterprise features is unavailable
This commit is contained in:
Omar Ajoue
2022-11-18 13:07:39 +01:00
committed by GitHub
parent bb5ebdf6c9
commit e1a491edce
11 changed files with 74 additions and 73 deletions

View File

@@ -24,7 +24,7 @@ import { WorkflowExecute } from 'n8n-core';
// eslint-disable-next-line import/no-extraneous-dependencies
import PCancelable from 'p-cancelable';
import { Repository } from 'typeorm';
import type { FindOperator, Repository } from 'typeorm';
import { ChildProcess } from 'child_process';
import { Url } from 'url';
@@ -710,7 +710,7 @@ export interface IWorkflowExecuteProcess {
workflowExecute: WorkflowExecute;
}
export type WhereClause = Record<string, { id: string }>;
export type WhereClause = Record<string, { [key: string]: string | FindOperator<unknown> }>;
// ----------------------------------
// community nodes