mirror of
https://github.com/n8n-io/n8n.git
synced 2026-06-02 01:37:07 +02: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);
|
|
}
|