for testing
This commit is contained in:
parent
d9745f0d4f
commit
3464d13ff1
@ -42,7 +42,7 @@ module Connectors
|
||||
sort = nil
|
||||
if options["sort"]
|
||||
val = options.delete("sort")
|
||||
sort = {created_at: (val == "desc" ? -1 : 1)}
|
||||
sort = {created_at: (val == "desc" ? 1 : -1)}
|
||||
end
|
||||
puts "Reports: #{options}"
|
||||
cursor = collection.find(options)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user