decidim-meetings/app/services/decidim/meetings/meeting_search.rb in decidim-0.4.3 vs decidim-meetings/app/services/decidim/meetings/meeting_search.rb in decidim-0.4.4

- old
+ new

@@ -22,12 +22,12 @@ end # Handle the date filter def search_date if options[:date] == "upcoming" - query.where("start_time >= ? ", Time.current).order("start_time ASC") + query.where("start_time >= ? ", Time.current).order(start_time: :asc) elsif options[:date] == "past" - query.where("start_time <= ? ", Time.current).order("start_time DESC") + query.where("start_time <= ? ", Time.current).order(start_time: :desc) end end private