mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(wufooTrigger Node): fix form names not being listed correctly (#4151)
This commit is contained in:
committed by
GitHub
parent
764bd3522b
commit
616d62aa8e
@@ -7,7 +7,7 @@ import {
|
||||
ILoadOptionsFunctions,
|
||||
} from 'n8n-core';
|
||||
|
||||
import { IDataObject, NodeApiError, NodeOperationError } from 'n8n-workflow';
|
||||
import { IDataObject, JsonObject, NodeApiError } from 'n8n-workflow';
|
||||
|
||||
export async function wufooApiRequest(
|
||||
this: IHookFunctions | IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions,
|
||||
@@ -23,10 +23,6 @@ export async function wufooApiRequest(
|
||||
const credentials = await this.getCredentials('wufooApi');
|
||||
|
||||
let options: OptionsWithUri = {
|
||||
auth: {
|
||||
username: credentials!.apiKey as string,
|
||||
password: '',
|
||||
},
|
||||
method,
|
||||
form: body,
|
||||
body,
|
||||
@@ -41,8 +37,8 @@ export async function wufooApiRequest(
|
||||
}
|
||||
|
||||
try {
|
||||
return await this.helpers.request!(options);
|
||||
return await this.helpers.requestWithAuthentication.call(this, 'wufooApi', options);
|
||||
} catch (error) {
|
||||
throw new NodeApiError(this.getNode(), error);
|
||||
throw new NodeApiError(this.getNode(), error as JsonObject);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user