Compare commits
No commits in common. "047845155e466ebe9543a0b64d2d6d4a7142da71" and "9f043738b46199082ec2850b4fa70daf9b47a7aa" have entirely different histories.
047845155e
...
9f043738b4
2 changed files with 7 additions and 9 deletions
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -112,14 +112,10 @@ export class ReservationsService {
|
|||
const reservation = await this.getById(id)
|
||||
if (!reservation) return
|
||||
|
||||
try {
|
||||
if (reservation.status === ReservationStatus.Booked) {
|
||||
await this.brService.cancelReservation(reservation)
|
||||
} else if (reservation.status === ReservationStatus.OnWaitingList) {
|
||||
await this.brService.removeReservationFromWaitList(reservation)
|
||||
}
|
||||
} catch (error: unknown) {}
|
||||
|
||||
if (reservation.status === ReservationStatus.Booked)
|
||||
await this.brService.cancelReservation(reservation)
|
||||
else if (reservation.status === ReservationStatus.OnWaitingList)
|
||||
await this.brService.removeReservationFromWaitList(reservation)
|
||||
return await this.reservationsRepository.delete({ id: reservation.id })
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue