diff --git a/src/github.js b/src/github.js index 6c51b61..7ceaa94 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.entries(contributors).filter(element => element.flatMap(element => element.author))); + octokit.log.debug("✅ contributors hasOwn:login :", Object.entries(contributors).filter(element => element.flatMap(el => el.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))