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:
@@ -1,6 +1,6 @@
|
||||
import type { IExecuteFunctions, IHookFunctions } from 'n8n-core';
|
||||
|
||||
import type { IDataObject } from 'n8n-workflow';
|
||||
import type { IDataObject, JsonObject } from 'n8n-workflow';
|
||||
import { NodeApiError } from 'n8n-workflow';
|
||||
|
||||
import type { OptionsWithUri } from 'request';
|
||||
@@ -36,7 +36,7 @@ export async function sms77ApiRequest(
|
||||
const response = await this.helpers.requestWithAuthentication.call(this, 'sms77Api', options);
|
||||
|
||||
if (response.success !== '100') {
|
||||
throw new NodeApiError(this.getNode(), response, {
|
||||
throw new NodeApiError(this.getNode(), response as JsonObject, {
|
||||
message: 'Invalid sms77 credentials or API error!',
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user