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:
Jon 2023-12-13 15:24:43 +00:00 committed by GitHub
parent d7ce4624c8
commit 1943857231
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,