Prevent booking all available courts and throw error in case we need to waitlist
This commit is contained in:
parent
c4fcb38df8
commit
360acfb63b
1 changed files with 3 additions and 0 deletions
|
|
@ -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(
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue