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:
@@ -8,7 +8,7 @@ import type {
|
||||
IWebhookFunctions,
|
||||
} from 'n8n-core';
|
||||
|
||||
import type { IDataObject } from 'n8n-workflow';
|
||||
import type { JsonObject, IDataObject } from 'n8n-workflow';
|
||||
import { NodeApiError } from 'n8n-workflow';
|
||||
|
||||
export async function paddleApiRequest(
|
||||
@@ -47,12 +47,12 @@ export async function paddleApiRequest(
|
||||
const response = await this.helpers.request(options);
|
||||
|
||||
if (!response.success) {
|
||||
throw new NodeApiError(this.getNode(), response);
|
||||
throw new NodeApiError(this.getNode(), response as JsonObject);
|
||||
}
|
||||
|
||||
return response;
|
||||
} catch (error) {
|
||||
throw new NodeApiError(this.getNode(), error);
|
||||
throw new NodeApiError(this.getNode(), error as JsonObject);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ export async function paddleApiRequestAllItems(
|
||||
|
||||
do {
|
||||
responseData = await paddleApiRequest.call(this, endpoint, method, body, query);
|
||||
returnData.push.apply(returnData, responseData[propertyName]);
|
||||
returnData.push.apply(returnData, responseData[propertyName] as IDataObject[]);
|
||||
body.page++;
|
||||
} while (
|
||||
responseData[propertyName].length !== 0 &&
|
||||
|
||||
Reference in New Issue
Block a user