mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
feat: Upgrade TypeScript to v5 (no-changelog) (#5755)
This commit is contained in:
committed by
GitHub
parent
b69129bd78
commit
87e979c19a
@@ -55,10 +55,11 @@ export async function sendGridApiRequestAllItems(
|
||||
|
||||
do {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
||||
responseData = await sendGridApiRequest.call(this, endpoint, method, body, query, uri); // posible bug, as function does not have uri parameter
|
||||
responseData = await sendGridApiRequest.call(this, endpoint, method, body, query, uri); // possible bug, as function does not have uri parameter
|
||||
uri = responseData._metadata.next;
|
||||
returnData.push.apply(returnData, responseData[propertyName] as IDataObject[]);
|
||||
if (query.limit && returnData.length >= query.limit) {
|
||||
const limit = query.limit as number | undefined;
|
||||
if (limit && returnData.length >= limit) {
|
||||
return returnData;
|
||||
}
|
||||
} while (responseData._metadata.next !== undefined);
|
||||
|
||||
Reference in New Issue
Block a user