Skip to content

Commit

Permalink
switch to remind sequentially
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed May 18, 2024
1 parent 0ca93ad commit ddeee25
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions activities-bot/src/sendReminder.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,11 @@ async function main() {
const eodUpdates = await getEODUpdates();

console.info("⚙️ Reminding users...");
await Promise.all(
Object.entries(allContributors).map(([githubId, slackId]) =>
withRetry(() => remind({ slackId, updates: eodUpdates[githubId] }), {
attempts: 3,
}),
),
);
for (const [githubId, slackId] of Object.entries(allContributors)) {
await withRetry(() => remind({ slackId, updates: eodUpdates[githubId] }), {
attempts: 3,
});
}
console.info("✅ Completed!");
}

Expand Down

0 comments on commit ddeee25

Please sign in to comment.