Closed xandrck closed 3 years ago
https://github.com/alex-rns/med_helper/blob/58c076f69090b6c0c017d8fe2c1f46f0088f0cf6/app/helpers/events_helper.rb#L82
events = expert.events.where(start_time: time.to_datetime.beginning_of_day...time.to_datetime.end_of_day) .where(status: "pending") .where(status: "approve") events.each { |ev| arr << ev.start_time.hour }
Fixed https://github.com/alex-rns/med_helper/commit/cfc39cd0d167aa10842631ade81ab98e22e414fd
https://github.com/alex-rns/med_helper/blob/58c076f69090b6c0c017d8fe2c1f46f0088f0cf6/app/helpers/events_helper.rb#L82