mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 11:22:15 +00:00
fix(core): Remove linting exceptions in nodes-base, @typescript-eslint/no-unsafe-argument (no-changelog)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import type { IExecuteFunctions, IHookFunctions } from 'n8n-core';
|
||||
|
||||
import type { IDataObject, ILoadOptionsFunctions } from 'n8n-workflow';
|
||||
import type { IDataObject, ILoadOptionsFunctions, JsonObject } from 'n8n-workflow';
|
||||
import { NodeApiError } from 'n8n-workflow';
|
||||
|
||||
import type { OptionsWithUri } from 'request';
|
||||
@@ -51,7 +51,7 @@ export async function bubbleApiRequest(
|
||||
try {
|
||||
return await this.helpers.request(options);
|
||||
} catch (error) {
|
||||
throw new NodeApiError(this.getNode(), error);
|
||||
throw new NodeApiError(this.getNode(), error as JsonObject);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ export async function bubbleApiRequestAllItems(
|
||||
do {
|
||||
responseData = await bubbleApiRequest.call(this, method, endpoint, body, qs);
|
||||
qs.cursor += qs.limit;
|
||||
returnData.push.apply(returnData, responseData.response.results);
|
||||
returnData.push.apply(returnData, responseData.response.results as IDataObject[]);
|
||||
} while (responseData.response.remaining !== 0);
|
||||
|
||||
return returnData;
|
||||
|
||||
Reference in New Issue
Block a user