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:
@@ -81,8 +81,8 @@ export class Tapfiliate implements INodeType {
|
||||
const programs = await tapfiliateApiRequestAllItems.call(this, 'GET', '/programs/');
|
||||
for (const program of programs) {
|
||||
returnData.push({
|
||||
name: program.title,
|
||||
value: program.id,
|
||||
name: program.title as string,
|
||||
value: program.id as string,
|
||||
});
|
||||
}
|
||||
return returnData;
|
||||
@@ -131,7 +131,7 @@ export class Tapfiliate implements INodeType {
|
||||
delete body.companyName;
|
||||
}
|
||||
responseData = await tapfiliateApiRequest.call(this, 'POST', '/affiliates/', body);
|
||||
returnData.push(responseData);
|
||||
returnData.push(responseData as INodeExecutionData);
|
||||
}
|
||||
if (operation === 'delete') {
|
||||
//https://tapfiliate.com/docs/rest/#affiliates-affiliate-delete
|
||||
@@ -297,7 +297,7 @@ export class Tapfiliate implements INodeType {
|
||||
}
|
||||
|
||||
const executionData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray(responseData),
|
||||
this.helpers.returnJsonArray(responseData as IDataObject[]),
|
||||
{ itemData: { item: i } },
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user