I think this fixes a bug in changing conference times

This commit is contained in:
Michael Ball 2020-07-16 00:32:32 -07:00
parent d5a9b79f6e
commit 43c0d4a3f5

View file

@ -127,7 +127,7 @@ class Conference < ApplicationRecord
event_schedules = program.event_schedules.select do |event_schedule|
event_schedule.start_time.hour < start_hour ||
event_schedule.end_time.hour > end_hour ||
(event_schedule.end_time.hour == end_hour && event_schedule.end_time.minute > 0)
(event_schedule.end_time.hour == end_hour && event_schedule.end_time.min > 0)
end
event_schedules.each(&:destroy)
end