Skip to content

Commit

Permalink
Bug : Fixed broken cron to apply negligent role (#85)
Browse files Browse the repository at this point in the history
Co-authored-by: Prakash Choudhary <34452139+prakashchoudhary07@users.noreply.github.com>
  • Loading branch information
joyguptaa and prakashchoudhary07 authored Sep 29, 2024
1 parent 25849f0 commit e59272d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ export default {
async scheduled(req: ScheduledController, env: env, ctx: ExecutionContext) {
switch (req.cron) {
case EVERY_12_HOURS: {
await callDiscordNicknameBatchUpdateHandler(env);
await addMissedUpdatesRoleHandler(env);
await Promise.allSettled([callDiscordNicknameBatchUpdateHandler(env), addMissedUpdatesRoleHandler(env)]);
break;
}

Expand Down

0 comments on commit e59272d

Please sign in to comment.