feat(n8n Form Trigger Node): Improvements (#7571)
Github issue / Community forum post (link here to close automatically): --------- Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in> Co-authored-by: Giulio Andreini <andreini@netseven.it>
This commit is contained in:
19
packages/cli/src/WaitingForms.ts
Normal file
19
packages/cli/src/WaitingForms.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user