From 00351ff2afa2aea853356c82bdf067ab176d8b6d Mon Sep 17 00:00:00 2001 From: bohung Date: Fri, 4 Nov 2022 10:22:41 +0800 Subject: [PATCH] Fix bug. --- app/controllers/admin/feeds_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/feeds_controller.rb b/app/controllers/admin/feeds_controller.rb index ef73cef..648a050 100644 --- a/app/controllers/admin/feeds_controller.rb +++ b/app/controllers/admin/feeds_controller.rb @@ -117,7 +117,7 @@ class Admin::FeedsController < OrbitAdminController @skip_count = (@page_no-1)*@max_content_count @module_name = params[:filters][:module_name].to_a rescue [] @module_name = SiteFeed.all.map{|s| s.channel_key}.uniq if @module_name == [] - @all_feed_annc = SiteFeedAnnc.where(:channel_key.in => @module_name).order(created_at: 1).to_a rescue [] + @all_feed_annc = SiteFeedAnnc.where(:channel_key.in => @module_name).order(id: 1).to_a rescue [] @source = params[:filters][:source] rescue [] @keywords = params[:keywords] rescue nil if request.xhr?