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