fix(core): Remove linting exceptions in nodes-base, @typescript-eslint/no-unsafe-argument (no-changelog)

This commit is contained in:
Michael Kret
2023-02-28 05:39:43 +02:00
committed by GitHub
parent 3172ea376e
commit bb4db58819
560 changed files with 2227 additions and 1919 deletions

View File

@@ -14,6 +14,7 @@ import type {
IDataObject,
INodeProperties,
IPairedItemData,
JsonObject,
} from 'n8n-workflow';
import { NodeApiError } from 'n8n-workflow';
@@ -26,12 +27,11 @@ export async function supabaseApiRequest(
| IWebhookFunctions,
method: string,
resource: string,
body: any = {},
body: IDataObject | IDataObject[] = {},
qs: IDataObject = {},
uri?: string,
headers: IDataObject = {},
): Promise<any> {
) {
const credentials = (await this.getCredentials('supabaseApi')) as {
host: string;
serviceRole: string;
@@ -56,7 +56,7 @@ export async function supabaseApiRequest(
}
return await this.helpers.requestWithAuthentication.call(this, 'supabaseApi', options);
} catch (error) {
throw new NodeApiError(this.getNode(), error);
throw new NodeApiError(this.getNode(), error as JsonObject);
}
}