fix(Facebook Lead Ads Trigger Node): Pagination fix in RLC (#10956)
Some checks are pending
Test Master / install-and-build (push) Waiting to run
Test Master / Unit tests (18.x) (push) Blocked by required conditions
Test Master / Unit tests (20.x) (push) Blocked by required conditions
Test Master / Unit tests (22.4) (push) Blocked by required conditions
Test Master / Lint (push) Blocked by required conditions
Test Master / Notify Slack on failure (push) Blocked by required conditions
Benchmark Docker Image CI / build (push) Waiting to run

This commit is contained in:
Michael Kret 2024-09-25 19:04:52 +03:00 committed by GitHub
parent d7c1d24f74
commit 6322372610
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -18,7 +18,7 @@ export async function pageList(
value: page.id,
url: `https://facebook.com/${page.id}`,
})),
paginationToken: paging?.cursors?.after,
paginationToken: paging?.next ? paging?.cursors?.after : undefined,
};
}
@ -37,6 +37,6 @@ export async function formList(
name: form.name,
value: form.id,
})),
paginationToken: paging?.cursors?.after,
paginationToken: paging?.next ? paging?.cursors?.after : undefined,
};
}

View file

@ -2,7 +2,7 @@ import type { GenericValue } from 'n8n-workflow';
export type BaseFacebookResponse<TData> = { data: TData };
export type BasePaginatedFacebookResponse<TData> = BaseFacebookResponse<TData> & {
paging: { cursors: { before?: string; after?: string } };
paging: { cursors: { before?: string; after?: string }; next?: string };
};
export type FacebookAppWebhookSubscriptionsResponse = BaseFacebookResponse<