Confirm a created booking if admin saves it
This commit is contained in:
parent
17f7520876
commit
d0f6c9734a
pkg/booking
|
@ -349,6 +349,9 @@ func updateBooking(w http.ResponseWriter, r *http.Request, user *auth.User, comp
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if bookingStatus == "created" {
|
||||
bookingStatus = "confirmed"
|
||||
}
|
||||
return tx.EditBooking(
|
||||
ctx,
|
||||
f.ID,
|
||||
|
|
Loading…
Reference in New Issue