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:
@@ -81,14 +81,16 @@ export async function handleListing(
|
||||
do {
|
||||
responseData = await actionNetworkApiRequest.call(this, method, endpoint, body, qs);
|
||||
const items = responseData._embedded[itemsKey];
|
||||
returnData.push(...items);
|
||||
returnData.push(...(items as IDataObject[]));
|
||||
|
||||
if (!returnAll && returnData.length >= limit) {
|
||||
return returnData.slice(0, limit);
|
||||
}
|
||||
|
||||
if (responseData._links?.next?.href) {
|
||||
const queryString = new URLSearchParams(responseData._links.next.href.split('?')[1]);
|
||||
const queryString = new URLSearchParams(
|
||||
responseData._links.next.href.split('?')[1] as string,
|
||||
);
|
||||
qs.page = queryString.get('page') as string;
|
||||
}
|
||||
} while (responseData._links?.next);
|
||||
|
||||
Reference in New Issue
Block a user