mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(core): Remove linting exceptions in nodes-base, @typescript-eslint/no-unsafe-argument (no-changelog)
This commit is contained in:
@@ -2,7 +2,7 @@ import type { OptionsWithUri } from 'request';
|
||||
|
||||
import type { IExecuteFunctions, IHookFunctions } from 'n8n-core';
|
||||
|
||||
import type { IDataObject, ILoadOptionsFunctions } from 'n8n-workflow';
|
||||
import type { IDataObject, ILoadOptionsFunctions, JsonObject } from 'n8n-workflow';
|
||||
import { NodeApiError, NodeOperationError } from 'n8n-workflow';
|
||||
|
||||
import flow from 'lodash.flow';
|
||||
@@ -68,11 +68,11 @@ export async function zohoApiRequest(
|
||||
|
||||
if (responseData === undefined) return [];
|
||||
|
||||
throwOnErrorStatus.call(this, responseData);
|
||||
throwOnErrorStatus.call(this, responseData as IDataObject);
|
||||
|
||||
return responseData;
|
||||
} catch (error) {
|
||||
throw new NodeApiError(this.getNode(), error);
|
||||
throw new NodeApiError(this.getNode(), error as JsonObject);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -95,7 +95,7 @@ export async function zohoApiRequestAllItems(
|
||||
do {
|
||||
responseData = await zohoApiRequest.call(this, method, endpoint, body, qs);
|
||||
if (Array.isArray(responseData) && !responseData.length) return returnData;
|
||||
returnData.push(...responseData.data);
|
||||
returnData.push(...(responseData.data as IDataObject[]));
|
||||
qs.page++;
|
||||
} while (responseData.info.more_records !== undefined && responseData.info.more_records === true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user