From 233c25238484fbad6bccf7f0d0ec8221ad80ef07 Mon Sep 17 00:00:00 2001 From: milankomaj Date: Thu, 1 Aug 2024 20:15:46 +0200 Subject: [PATCH] --- src/github.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/github.js b/src/github.js index 54225b9..f5aa040 100644 --- a/src/github.js +++ b/src/github.js @@ -327,11 +327,10 @@ 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).map(([index, total, weeks]) => ({ + octokit.log.debug("✅ contributors hasOwn:login :", Object.entries(contributors).map(([index, total]) => ({ index, total: total.total, - weeks: Object.values(total.weeks), - author: Object.values(total.author) + author: Object.values(total.author)[0] })) ) const authenticate = (element => element.author ? element.author.login === username : '')