mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 04:04:06 -08:00
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
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:
parent
d7c1d24f74
commit
6322372610
|
@ -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,
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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<
|
||||
|
|
Loading…
Reference in a new issue