Skip to content
Permalink
Browse files

FIX: Correct ordering for post_edits report, and remove query limit

  • Loading branch information...
davidtaylorhq committed Aug 13, 2019
1 parent 572e928 commit 961213ba52eb40fddd4e07ef3d8de2e785a33ff0
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/reports/post_edits.rb
@@ -73,6 +73,7 @@
ON editor.id = pr.user_id
/*join*/
/*where*/
ORDER BY pr.created_at ASC
/*limit*/
SQL

@@ -88,7 +89,6 @@
builder.where("editor.id > 0 AND editor.id != author.id")
builder.where("pr.created_at >= :start_date", start_date: report.start_date)
builder.where("pr.created_at <= :end_date", end_date: report.end_date)
builder.limit(report.limit || 20)

result = builder.query

0 comments on commit 961213b

Please sign in to comment.
You can’t perform that action at this time.