mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
fix(Facebook Lead Ads Trigger Node): Pagination fix in RLC (#10956)
This commit is contained in:
@@ -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<
|
||||
|
||||
Reference in New Issue
Block a user