Skip to content

Commit fca8273

Browse files
committed
fix(place/room_booking_approval): notify host by default, otherwise wpa approval status will not be correct
1 parent ab9f7c8 commit fca8273

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/place/room_booking_approval.cr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ class Place::RoomBookingApproval < PlaceOS::Driver
8686
end
8787

8888
@[Security(Level::Support)]
89-
def accept_event(calendar_id : String, event_id : String, user_id : String? = nil, notify : Bool = false, comment : String? = nil)
89+
def accept_event(calendar_id : String, event_id : String, user_id : String? = nil, notify : Bool = true, comment : String? = nil)
9090
calendar.accept_event(calendar_id: calendar_id, event_id: event_id, user_id: user_id, notify: notify, comment: comment)
9191
clear_cache(event_id: event_id)
9292
end
9393

9494
@[Security(Level::Support)]
95-
def accept_recurring_event(calendar_id : String, recurring_event_id : String, user_id : String? = nil, notify : Bool = false, comment : String? = nil)
95+
def accept_recurring_event(calendar_id : String, recurring_event_id : String, user_id : String? = nil, notify : Bool = true, comment : String? = nil)
9696
recurring_event_id = resolve_recurring_event_id(calendar_id, recurring_event_id, user_id) if @check_recurring_event_id
9797

9898
logger.debug { "accepting recurring event #{recurring_event_id} on #{calendar_id}" }
@@ -101,13 +101,13 @@ class Place::RoomBookingApproval < PlaceOS::Driver
101101
end
102102

103103
@[Security(Level::Support)]
104-
def decline_event(calendar_id : String, event_id : String, user_id : String? = nil, notify : Bool = false, comment : String? = nil)
104+
def decline_event(calendar_id : String, event_id : String, user_id : String? = nil, notify : Bool = true, comment : String? = nil)
105105
calendar.decline_event(calendar_id: calendar_id, event_id: event_id, user_id: user_id, notify: notify, comment: comment)
106106
clear_cache(event_id: event_id)
107107
end
108108

109109
@[Security(Level::Support)]
110-
def decline_recurring_event(calendar_id : String, recurring_event_id : String, user_id : String? = nil, notify : Bool = false, comment : String? = nil)
110+
def decline_recurring_event(calendar_id : String, recurring_event_id : String, user_id : String? = nil, notify : Bool = true, comment : String? = nil)
111111
recurring_event_id = resolve_recurring_event_id(calendar_id, recurring_event_id, user_id) if @check_recurring_event_id
112112

113113
logger.debug { "declining recurring event #{recurring_event_id} on #{calendar_id}" }

0 commit comments

Comments
 (0)