mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 09:36:44 +00:00
fix(ActiveCampaign Node): Fix pagination issue when loading tags (#8017)
## Summary Changes the getTags method to use the paginated API call. ## Related tickets and issues https://community.n8n.io/t/activecampaign-node-is-not-loading-all-tags/34169
This commit is contained in:
@@ -285,13 +285,15 @@ export class ActiveCampaign implements INodeType {
|
||||
// select them easily
|
||||
async getTags(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
|
||||
const returnData: INodePropertyOptions[] = [];
|
||||
const { tags } = await activeCampaignApiRequest.call(
|
||||
const tags = await activeCampaignApiRequestAllItems.call(
|
||||
this,
|
||||
'GET',
|
||||
'/api/3/tags',
|
||||
{},
|
||||
{ limit: 100 },
|
||||
'tags',
|
||||
);
|
||||
|
||||
for (const tag of tags) {
|
||||
returnData.push({
|
||||
name: tag.tag,
|
||||
|
||||
Reference in New Issue
Block a user