Compare commits

..

No commits in common. "0e4c7ca0f11a402e1649b4ac80150fee11b8fe39" and "7307cad3503f2bfbcc7b2112385df1490726eead" have entirely different histories.

2 changed files with 2 additions and 5 deletions

View file

@ -62,9 +62,9 @@ export class NtfyProvider implements OnApplicationBootstrap {
async sendBootstrappedNotification() { async sendBootstrappedNotification() {
const version = const version =
this.configService.get<string>('GIT_COMMIT') ?? this.configService.get<string>('GIT_COMMIT') ??
(this.configService.get('LOCAL') === 'true' this.configService.get('LOCAL') === 'true'
? 'LOCAL' ? 'LOCAL'
: 'unknown') : 'unknown'
await this.publishQueue.add( await this.publishQueue.add(
...NtfyProvider.defaultJob({ ...NtfyProvider.defaultJob({
title: 'Autobaan up and running', title: 'Autobaan up and running',

View file

@ -721,7 +721,6 @@ export class BaanReserverenService {
const classList = Object.values(classListObj) const classList = Object.values(classListObj)
const rClass = classList.filter((cl) => /r-\d{2}/.test(cl))[0] const rClass = classList.filter((cl) => /r-\d{2}/.test(cl))[0]
const courtNumber = const courtNumber =
// @ts-expect-error just in case
`${CourtSlotToNumber[rClass.replace(/r-/, '') as CourtSlot]}` ?? `${CourtSlotToNumber[rClass.replace(/r-/, '') as CourtSlot]}` ??
'unknown court' 'unknown court'
const startTime = await court const startTime = await court
@ -913,10 +912,8 @@ export class BaanReserverenService {
try { try {
currentAttempt++ currentAttempt++
await this.init() await this.init()
break
} catch (err: unknown) { } catch (err: unknown) {
if (err instanceof RunningReservationsNavigationError) { if (err instanceof RunningReservationsNavigationError) {
this.loggerService.warn('Hit expected warmup error, retrying', { currentAttempt })
await new Promise((res) => setTimeout(res, delay)) await new Promise((res) => setTimeout(res, delay))
} else { } else {
throw err throw err