Prevent booking all available courts and throw error in case we need to waitlist

This commit is contained in:
Collin Duncan 2024-05-02 11:13:22 +02:00
parent c4fcb38df8
commit 360acfb63b
No known key found for this signature in database

View file

@ -723,7 +723,10 @@ export class BaanReserverenService {
} }
throw error throw error
}) })
return
} }
throw new NoCourtAvailableError('Could not reserve court')
} }
public async addReservationToWaitList( public async addReservationToWaitList(