From 2a2d8fbd866ac293f2111401026fb45c0ed5b735 Mon Sep 17 00:00:00 2001 From: Valentina Date: Tue, 1 Feb 2022 14:05:27 +0200 Subject: [PATCH] Fix potential error for undefined --- nodes/FriendGrid/GenericFunctions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes/FriendGrid/GenericFunctions.ts b/nodes/FriendGrid/GenericFunctions.ts index 0135d85..29cc623 100644 --- a/nodes/FriendGrid/GenericFunctions.ts +++ b/nodes/FriendGrid/GenericFunctions.ts @@ -16,7 +16,7 @@ import { } from 'n8n-workflow'; export async function friendGridApiRequest(this: IHookFunctions | IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, - method: string, endpoint: string, body?: object, qs?: object, uri?: string): Promise { // tslint:disable-line:no-any + method: string, endpoint: string, body: object = {}, qs: object = {}, uri?: string): Promise { // tslint:disable-line:no-any //Get credentials the user provided for this node const credentials = await this.getCredentials('friendGridApi') as IDataObject;