Skip to content

Commit

Permalink
FIX: Correct ordering for post_edits report, and remove query limit
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaylorhq committed Aug 13, 2019
1 parent 572e928 commit 961213b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/reports/post_edits.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
ON editor.id = pr.user_id
/*join*/
/*where*/
ORDER BY pr.created_at ASC
/*limit*/
SQL

Expand All @@ -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

Expand Down

0 comments on commit 961213b

Please sign in to comment.