Skip to content

Commit

Permalink
Change scheduler to run 10 minutes before picks lock
Browse files Browse the repository at this point in the history
  • Loading branch information
blchelle committed Sep 5, 2023
1 parent 40595ce commit a37ace2
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() - 5) })
pickLockTimes.forEach((gameTime) => { gameTime.setMinutes(gameTime.getMinutes() - 10) })
return pickLockTimes.filter((date, i, self) => self.findIndex((d) => d.getTime() === date.getTime()) === i)
}

Expand Down

0 comments on commit a37ace2

Please sign in to comment.