mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
Should have put order on the screened urls results
This commit is contained in:
parent
bd9b85f076
commit
9c91ddd854
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
class Admin::ScreenedUrlsController < Admin::AdminController
|
||||
|
||||
def index
|
||||
screened_urls = ScreenedUrl.select("domain, sum(match_count) as match_count, max(last_match_at) as last_match_at, min(created_at) as created_at").group(:domain).to_a
|
||||
screened_urls = ScreenedUrl.select("domain, sum(match_count) as match_count, max(last_match_at) as last_match_at, min(created_at) as created_at").group(:domain).order('last_match_at DESC').to_a
|
||||
render_serialized(screened_urls, GroupedScreenedUrlSerializer)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue