From 2225cdcafb0359436aac8a14256a576711f76957 Mon Sep 17 00:00:00 2001 From: joritochip <83682212+joritochip@users.noreply.github.com> Date: Wed, 30 Mar 2022 23:33:32 -0600 Subject: [PATCH] Fix ServicePaging iterator --- src/helpers/ServicePaging.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/ServicePaging.ts b/src/helpers/ServicePaging.ts index 9da2c98..786d464 100644 --- a/src/helpers/ServicePaging.ts +++ b/src/helpers/ServicePaging.ts @@ -124,7 +124,7 @@ export class ServicePage< } while (currentPage.hasNextPage()) { - currentPage = await this.getNextPage(); + currentPage = await currentPage.getNextPage(); yield currentPage.data as DataTransformed; } }