mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-12 15:44:06 -08:00
6cb3072a5d
Co-authored-by: Milorad Filipovic <milorad@n8n.io> Co-authored-by: Mutasem Aldmour <mutasem@n8n.io>
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);
|
|
}
|