Browse Source

Update logs ordering (#2302)

pull/2303/head
kosiakkatrina 10 months ago committed by GitHub
parent
commit
b4b8548959
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      app/services/filter_manager.rb

2
app/services/filter_manager.rb

@ -27,7 +27,7 @@ class FilterManager
logs = logs.public_send("filter_by_#{category}", values, user) logs = logs.public_send("filter_by_#{category}", values, user)
end end
logs = logs.order(created_at: :desc) logs = logs.order(id: :desc)
if user.support? if user.support?
if logs.first&.lettings? if logs.first&.lettings?
logs.all.includes(:owning_organisation, :managing_organisation) logs.all.includes(:owning_organisation, :managing_organisation)

Loading…
Cancel
Save