Skip to content

Commit

Permalink
Reset the scheduler to run 5 minutes before games
Browse files Browse the repository at this point in the history
  • Loading branch information
blchelle committed Sep 8, 2023
1 parent 94b57b3 commit 43060c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/service/schedule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const getPickTimes = (games: ScheduleData): Date[] => {

// Offset the run times by 5 minutes to give the bots a chance to run
// Also eliminate duplicate times
pickLockTimes.forEach((gameTime) => { gameTime.setMinutes(gameTime.getMinutes() - 2) })
pickLockTimes.forEach((gameTime) => { gameTime.setMinutes(gameTime.getMinutes() - 5) })
return pickLockTimes.filter((date, i, self) => self.findIndex((d) => d.getTime() === date.getTime()) === i)
}

Expand Down

0 comments on commit 43060c7

Please sign in to comment.