mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(node): Freshdesk - fix issue when getAll operation requires non existent options
This commit is contained in:
@@ -2,7 +2,7 @@ import { OptionsWithUri } from 'request';
|
||||
|
||||
import { BINARY_ENCODING, IExecuteFunctions, ILoadOptionsFunctions } from 'n8n-core';
|
||||
|
||||
import { IDataObject, NodeApiError, NodeOperationError } from 'n8n-workflow';
|
||||
import { IDataObject, NodeApiError } from 'n8n-workflow';
|
||||
|
||||
export async function freshdeskApiRequest(
|
||||
this: IExecuteFunctions | ILoadOptionsFunctions,
|
||||
@@ -13,8 +13,7 @@ export async function freshdeskApiRequest(
|
||||
query: IDataObject = {},
|
||||
uri?: string,
|
||||
option: IDataObject = {},
|
||||
// tslint:disable-next-line:no-any
|
||||
): Promise<any> {
|
||||
) {
|
||||
const credentials = await this.getCredentials('freshdeskApi');
|
||||
|
||||
const apiKey = `${credentials.apiKey}:X`;
|
||||
@@ -53,8 +52,7 @@ export async function freshdeskApiRequestAllItems(
|
||||
// tslint:disable-next-line:no-any
|
||||
body: any = {},
|
||||
query: IDataObject = {},
|
||||
// tslint:disable-next-line:no-any
|
||||
): Promise<any> {
|
||||
) {
|
||||
const returnData: IDataObject[] = [];
|
||||
|
||||
let responseData;
|
||||
|
||||
Reference in New Issue
Block a user