mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08: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:
parent
d7ce4624c8
commit
1943857231
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue