mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-13 16:14:07 -08:00
13 lines
324 B
TypeScript
13 lines
324 B
TypeScript
|
import type { INodeExecutionData, Workflow, WorkflowExecuteMode } from '.';
|
||
|
|
||
|
export function getPinDataIfManualExecution(
|
||
|
workflow: Workflow,
|
||
|
nodeName: string,
|
||
|
mode: WorkflowExecuteMode,
|
||
|
): INodeExecutionData[] | undefined {
|
||
|
if (mode !== 'manual') {
|
||
|
return undefined;
|
||
|
}
|
||
|
return workflow.getPinDataOfNode(nodeName);
|
||
|
}
|