Compare commits
No commits in common. "0e4c7ca0f11a402e1649b4ac80150fee11b8fe39" and "7307cad3503f2bfbcc7b2112385df1490726eead" have entirely different histories.
0e4c7ca0f1
...
7307cad350
2 changed files with 2 additions and 5 deletions
|
|
@ -62,9 +62,9 @@ export class NtfyProvider implements OnApplicationBootstrap {
|
|||
async sendBootstrappedNotification() {
|
||||
const version =
|
||||
this.configService.get<string>('GIT_COMMIT') ??
|
||||
(this.configService.get('LOCAL') === 'true'
|
||||
this.configService.get('LOCAL') === 'true'
|
||||
? 'LOCAL'
|
||||
: 'unknown')
|
||||
: 'unknown'
|
||||
await this.publishQueue.add(
|
||||
...NtfyProvider.defaultJob({
|
||||
title: 'Autobaan up and running',
|
||||
|
|
|
|||
|
|
@ -721,7 +721,6 @@ export class BaanReserverenService {
|
|||
const classList = Object.values(classListObj)
|
||||
const rClass = classList.filter((cl) => /r-\d{2}/.test(cl))[0]
|
||||
const courtNumber =
|
||||
// @ts-expect-error just in case
|
||||
`${CourtSlotToNumber[rClass.replace(/r-/, '') as CourtSlot]}` ??
|
||||
'unknown court'
|
||||
const startTime = await court
|
||||
|
|
@ -913,10 +912,8 @@ export class BaanReserverenService {
|
|||
try {
|
||||
currentAttempt++
|
||||
await this.init()
|
||||
break
|
||||
} catch (err: unknown) {
|
||||
if (err instanceof RunningReservationsNavigationError) {
|
||||
this.loggerService.warn('Hit expected warmup error, retrying', { currentAttempt })
|
||||
await new Promise((res) => setTimeout(res, delay))
|
||||
} else {
|
||||
throw err
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue