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:
@@ -43,7 +43,7 @@ export async function woocommerceApiRequest(
|
||||
json: true,
|
||||
};
|
||||
|
||||
if (!Object.keys(body).length) {
|
||||
if (!Object.keys(body as IDataObject).length) {
|
||||
delete options.form;
|
||||
}
|
||||
options = Object.assign({}, options, option);
|
||||
@@ -72,7 +72,7 @@ export async function woocommerceApiRequestAllItems(
|
||||
if (nextLink) {
|
||||
uri = nextLink.split(';')[0].replace(/<(.*)>/, '$1');
|
||||
}
|
||||
returnData.push.apply(returnData, responseData.body);
|
||||
returnData.push.apply(returnData, responseData.body as IDataObject[]);
|
||||
} while (responseData.headers.link?.includes('rel="next"'));
|
||||
|
||||
return returnData;
|
||||
|
||||
Reference in New Issue
Block a user