Change default page size
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
@@ -51,7 +51,7 @@ export async function proboApiRequestAllItems(
|
|||||||
const items: any[] = [];
|
const items: any[] = [];
|
||||||
let hasNextPage = true;
|
let hasNextPage = true;
|
||||||
let cursor: string | null = null;
|
let cursor: string | null = null;
|
||||||
const pageSize = 50;
|
const pageSize = 100;
|
||||||
|
|
||||||
while (hasNextPage) {
|
while (hasNextPage) {
|
||||||
const currentLimit = returnAll ? pageSize : Math.min(pageSize, limit - items.length);
|
const currentLimit = returnAll ? pageSize : Math.min(pageSize, limit - items.length);
|
||||||
|
|||||||
Reference in New Issue
Block a user