Deleting reservation after successful run
This commit is contained in:
parent
4d56881d12
commit
b2ccbc2f7d
1 changed files with 1 additions and 0 deletions
|
|
@ -29,6 +29,7 @@ export const reserve = async (reservation?: Reservation): Promise<boolean> => {
|
|||
const runner = getRunner()
|
||||
try {
|
||||
await runner.run(reservationToPerform)
|
||||
await Reservation.delete(reservationToPerform)
|
||||
return true
|
||||
} catch (error) {
|
||||
l.getStore()?.error('Failed to perform reservation', { error: (error as LoggableError).toString() })
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue