Made hot fixes
This commit is contained in:
parent
869d3188de
commit
d90833283f
@ -47,7 +47,9 @@ def change_reservation(reservation_id):
|
|||||||
data = request.json
|
data = request.json
|
||||||
try:
|
try:
|
||||||
reservation = ReservationRepository.get_by_id(reservation_id)
|
reservation = ReservationRepository.get_by_id(reservation_id)
|
||||||
|
|
||||||
result = ReservationRepository.update(reservation_id, data)
|
result = ReservationRepository.update(reservation_id, data)
|
||||||
|
|
||||||
notify_clients(reservation["date"], reservation["room_id"])
|
notify_clients(reservation["date"], reservation["room_id"])
|
||||||
notify_clients(reservation["date"])
|
notify_clients(reservation["date"])
|
||||||
if not result or result.matched_count == 0:
|
if not result or result.matched_count == 0:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user