From a2b45882ff5841755aff5a27d8204ac6cf746d85 Mon Sep 17 00:00:00 2001 From: milankomaj Date: Thu, 1 Aug 2024 19:18:49 +0200 Subject: [PATCH] --- src/github.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github.js b/src/github.js index 340f4af..6584091 100644 --- a/src/github.js +++ b/src/github.js @@ -327,7 +327,7 @@ class GithubUser { const contributorsResults = await Promise.all(contributorsPromises); octokit.log.debug("✅ fetchAllcontributors.status:", (contributorsResults.flatMap(element => element.status))) const contributors = contributorsResults.flatMap(result => result.data); - octokit.log.debug("✅ contributors hasOwn:login :", Object.values(contributors).filter(element => element[author])); + octokit.log.debug("✅ contributors hasOwn:login :", Object.entries(contributors).filter(element => element.author)); const authenticate = (element => element.author ? element.author.login === username : '') const contribU = Object.values(contributors).filter(authenticate) // octokit.log.debug("✅ contribU counts:", (contribU.flatMap((counts) => counts.total)).reduce((a, b) => a + b, 0))