diff --git a/src/controllers/reservation_controller.py b/src/controllers/reservation_controller.py index 5e456a0..9ca0278 100644 --- a/src/controllers/reservation_controller.py +++ b/src/controllers/reservation_controller.py @@ -47,7 +47,9 @@ def change_reservation(reservation_id): data = request.json try: reservation = ReservationRepository.get_by_id(reservation_id) + result = ReservationRepository.update(reservation_id, data) + notify_clients(reservation["date"], reservation["room_id"]) notify_clients(reservation["date"]) if not result or result.matched_count == 0: