mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-21 03:42:16 +00:00
feat: Upgrade TypeScript to v5 (no-changelog) (#5755)
This commit is contained in:
committed by
GitHub
parent
b69129bd78
commit
87e979c19a
@@ -96,7 +96,8 @@ export async function hubspotApiRequestAllItems(
|
||||
}
|
||||
returnData.push.apply(returnData, responseData[propertyName] as IDataObject[]);
|
||||
//ticket:getAll endpoint does not support setting a limit, so return once the limit is reached
|
||||
if (query.limit && query.limit <= returnData.length && endpoint.includes('/tickets/paged')) {
|
||||
const limit = query.limit as number | undefined;
|
||||
if (limit && limit <= returnData.length && endpoint.includes('/tickets/paged')) {
|
||||
return returnData;
|
||||
}
|
||||
} while (responseData.hasMore || responseData['has-more'] || responseData.paging);
|
||||
|
||||
Reference in New Issue
Block a user