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