From adb4832c3c4734f87a44cf51e01a2233bdb79475 Mon Sep 17 00:00:00 2001 From: Akshat Nema <76521428+akshatnema@users.noreply.github.com> Date: Wed, 23 Oct 2024 17:44:13 +0530 Subject: [PATCH] fix: fixed rate limiting (#3319) Co-authored-by: asyncapi-bot --- scripts/dashboard/build-dashboard.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/scripts/dashboard/build-dashboard.js b/scripts/dashboard/build-dashboard.js index 120109a05c23..5b0a34bee17b 100644 --- a/scripts/dashboard/build-dashboard.js +++ b/scripts/dashboard/build-dashboard.js @@ -155,11 +155,9 @@ function monthsSince(date) { async function start() { try { - const [issues, PRs, rawGoodFirstIssues] = await Promise.all([ - getDiscussions(Queries.hotDiscussionsIssues, 20), - getDiscussions(Queries.hotDiscussionsPullRequests, 20), - getDiscussions(Queries.goodFirstIssues, 20) - ]); + const issues = await getDiscussions(Queries.hotDiscussionsIssues, 20); + const PRs = await getDiscussions(Queries.hotDiscussionsPullRequests, 20); + const rawGoodFirstIssues = await getDiscussions(Queries.goodFirstIssues, 20); const discussions = issues.concat(PRs); const [hotDiscussions, goodFirstIssues] = await Promise.all([ getHotDiscussions(discussions),