mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix(core): Remove linting exceptions in nodes-base, @typescript-eslint/no-unsafe-argument (no-changelog)
This commit is contained in:
@@ -2024,7 +2024,11 @@ export class Telegram implements INodeType {
|
||||
);
|
||||
|
||||
const fileName = filePath.split('/').pop();
|
||||
const data = await this.helpers.prepareBinaryData(file.body, fileName);
|
||||
|
||||
const data = await this.helpers.prepareBinaryData(
|
||||
file.body as Buffer,
|
||||
fileName as string,
|
||||
);
|
||||
|
||||
returnData.push({
|
||||
json: responseData,
|
||||
@@ -2035,7 +2039,7 @@ export class Telegram implements INodeType {
|
||||
}
|
||||
} else if (resource === 'chat' && operation === 'administrators') {
|
||||
const executionData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray(responseData.result),
|
||||
this.helpers.returnJsonArray(responseData.result as IDataObject[]),
|
||||
{ itemData: { item: i } },
|
||||
);
|
||||
returnData.push(...executionData);
|
||||
@@ -2043,7 +2047,7 @@ export class Telegram implements INodeType {
|
||||
}
|
||||
|
||||
const executionData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray(responseData),
|
||||
this.helpers.returnJsonArray(responseData as IDataObject[]),
|
||||
{ itemData: { item: i } },
|
||||
);
|
||||
returnData.push(...executionData);
|
||||
|
||||
Reference in New Issue
Block a user