mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-12 23:54:07 -08:00
20 lines
607 B
TypeScript
20 lines
607 B
TypeScript
|
import { Service } from 'typedi';
|
||
|
|
||
|
import type { IExecutionResponse } from '@/Interfaces';
|
||
|
import { WaitingWebhooks } from '@/WaitingWebhooks';
|
||
|
|
||
|
@Service()
|
||
|
export class WaitingForms extends WaitingWebhooks {
|
||
|
protected override includeForms = true;
|
||
|
|
||
|
protected override logReceivedWebhook(method: string, executionId: string) {
|
||
|
this.logger.debug(`Received waiting-form "${method}" for execution "${executionId}"`);
|
||
|
}
|
||
|
|
||
|
protected disableNode(execution: IExecutionResponse, method?: string) {
|
||
|
if (method === 'POST') {
|
||
|
execution.data.executionData!.nodeExecutionStack[0].node.disabled = true;
|
||
|
}
|
||
|
}
|
||
|
}
|