mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(core): Remove linting exceptions in nodes-base, @typescript-eslint/no-unsafe-argument (no-changelog)
This commit is contained in:
@@ -4,6 +4,7 @@ import type {
|
||||
INodeExecutionData,
|
||||
INodeType,
|
||||
INodeTypeDescription,
|
||||
JsonObject,
|
||||
} from 'n8n-workflow';
|
||||
import { NodeApiError, NodeOperationError } from 'n8n-workflow';
|
||||
|
||||
@@ -68,7 +69,7 @@ export class TogglTrigger implements INodeType {
|
||||
timeEntries = await togglApiRequest.call(this, 'GET', endpoint, {}, qs);
|
||||
webhookData.lastTimeChecked = qs.end_date;
|
||||
} catch (error) {
|
||||
throw new NodeApiError(this.getNode(), error);
|
||||
throw new NodeApiError(this.getNode(), error as JsonObject);
|
||||
}
|
||||
if (Array.isArray(timeEntries) && timeEntries.length !== 0) {
|
||||
return [this.helpers.returnJsonArray(timeEntries)];
|
||||
|
||||
Reference in New Issue
Block a user