mirror of
https://github.com/n8n-io/n8n-nodes-starter.git
synced 2025-10-29 14:22:26 -05:00
Fix potential error for undefined
This commit is contained in:
parent
5ec16f7da2
commit
2a2d8fbd86
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ import {
|
||||||
} from 'n8n-workflow';
|
} from 'n8n-workflow';
|
||||||
|
|
||||||
export async function friendGridApiRequest(this: IHookFunctions | IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions,
|
export async function friendGridApiRequest(this: IHookFunctions | IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions,
|
||||||
method: string, endpoint: string, body?: object, qs?: object, uri?: string): Promise<any> { // tslint:disable-line:no-any
|
method: string, endpoint: string, body: object = {}, qs: object = {}, uri?: string): Promise<any> { // tslint:disable-line:no-any
|
||||||
|
|
||||||
//Get credentials the user provided for this node
|
//Get credentials the user provided for this node
|
||||||
const credentials = await this.getCredentials('friendGridApi') as IDataObject;
|
const credentials = await this.getCredentials('friendGridApi') as IDataObject;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue