From dd311ab1948ef272e841240cc7fdbc1c0b8a24a3 Mon Sep 17 00:00:00 2001 From: Peter Nied Date: Tue, 9 Jan 2024 09:02:07 -0600 Subject: [PATCH] Fix variable naming Signed-off-by: Peter Nied --- dist/index.js | 2 +- index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 19ce0a4..59019e8 100644 --- a/dist/index.js +++ b/dist/index.js @@ -36744,7 +36744,7 @@ async function run() { }); let approvers = []; - for await (const { reviews: allReviews } of iterator) { + for await (const { data: reviews } of allReviews) { console.debug(`listReviews paged response response:\n ${JSON.stringify(reviews)}`); for (const review of reviews) { if (review => review.state === 'APPROVED' && review.user?.login) { diff --git a/index.js b/index.js index 07f3fd4..19d7694 100644 --- a/index.js +++ b/index.js @@ -35,7 +35,7 @@ async function run() { }); let approvers = []; - for await (const { reviews: allReviews } of iterator) { + for await (const { data: reviews } of allReviews) { console.debug(`listReviews paged response response:\n ${JSON.stringify(reviews)}`); for (const review of reviews) { if (review => review.state === 'APPROVED' && review.user?.login) {