mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 14:44:05 -08:00
953a58f18b
Github issue / Community forum post (link here to close automatically): --------- Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in> Co-authored-by: Giulio Andreini <andreini@netseven.it>
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;
|
|
}
|
|
}
|
|
}
|