Compare commits

..

No commits in common. "047845155e466ebe9543a0b64d2d6d4a7142da71" and "9f043738b46199082ec2850b4fa70daf9b47a7aa" have entirely different histories.

2 changed files with 7 additions and 9 deletions

View file

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

View file

@ -112,14 +112,10 @@ export class ReservationsService {
const reservation = await this.getById(id)
if (!reservation) return
try {
if (reservation.status === ReservationStatus.Booked) {
if (reservation.status === ReservationStatus.Booked)
await this.brService.cancelReservation(reservation)
} else if (reservation.status === ReservationStatus.OnWaitingList) {
else if (reservation.status === ReservationStatus.OnWaitingList)
await this.brService.removeReservationFromWaitList(reservation)
}
} catch (error: unknown) {}
return await this.reservationsRepository.delete({ id: reservation.id })
}
}