From 3a1dd7df9dafbe0bf11ab5fec65531e3eb954510 Mon Sep 17 00:00:00 2001 From: mikiodehartj1 <113941652+mikiodehartj1@users.noreply.github.com> Date: Tue, 18 Jun 2024 16:37:08 -0600 Subject: [PATCH] Update src/client.ts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Ignacio Rodríguez --- src/client.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/client.ts b/src/client.ts index 4426d05..0fa0621 100644 --- a/src/client.ts +++ b/src/client.ts @@ -97,19 +97,17 @@ export class APIClient { public async iterateCustomProfiles( iteratee: ResourceIteratee, ) { - const page = 1; const endpoint = this.withBaseUri('/api/v1/library/custom-profiles', { - page: `${page}`, + page: 1 }); const body = await this.request(endpoint); - console.log(body); const results = (body as any).results; + for (const result of results) { await iteratee(result); } } - public async iterateDevices(iteratee: ResourceIteratee) { let offset = 0; let length = 0;