Permalink
Browse files

User requests: order by newest first

  • Loading branch information...
aither64 committed Jul 3, 2018
1 parent 035996f commit 6cdfd750ee4dba8c2428a16b86eca60be73ea2d3
Showing with 4 additions and 1 deletion.
  1. +4 −1 plugins/requests/api/resources/base.rb
@@ -54,7 +54,10 @@ def count
end
def exec
with_includes(query).limit(input[:limit]).offset(input[:offset])
with_includes(query)
.limit(input[:limit])
.offset(input[:offset])
.order("#{::UserRequest.table_name}.id DESC")
end
end

0 comments on commit 6cdfd75

Please sign in to comment.