mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
Rename checkResponseModeConfiguration to validateResponseModeConfiguration
This commit is contained in:
parent
6258f0c9dd
commit
0c483a2551
|
@ -183,7 +183,7 @@ export function prepareFormData({
|
||||||
return formData;
|
return formData;
|
||||||
}
|
}
|
||||||
|
|
||||||
const checkResponseModeConfiguration = (context: IWebhookFunctions) => {
|
const validateResponseModeConfiguration = (context: IWebhookFunctions) => {
|
||||||
const responseMode = context.getNodeParameter('responseMode', 'onReceived') as string;
|
const responseMode = context.getNodeParameter('responseMode', 'onReceived') as string;
|
||||||
const connectedNodes = context.getChildNodes(context.getNode().name);
|
const connectedNodes = context.getChildNodes(context.getNode().name);
|
||||||
|
|
||||||
|
@ -445,7 +445,7 @@ export async function formWebhook(
|
||||||
);
|
);
|
||||||
const method = context.getRequestObject().method;
|
const method = context.getRequestObject().method;
|
||||||
|
|
||||||
checkResponseModeConfiguration(context);
|
validateResponseModeConfiguration(context);
|
||||||
|
|
||||||
//Show the form on GET request
|
//Show the form on GET request
|
||||||
if (method === 'GET') {
|
if (method === 'GET') {
|
||||||
|
|
Loading…
Reference in a new issue