Skip to content

Commit

Permalink
fixed rate limiting
Browse files Browse the repository at this point in the history
  • Loading branch information
akshatnema committed Oct 23, 2024
1 parent 0b09994 commit 737980a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions scripts/dashboard/build-dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 737980a

Please sign in to comment.