From b4b85489593a0b34ebb34cbec590ea0c4c2f0d48 Mon Sep 17 00:00:00 2001 From: kosiakkatrina <54268893+kosiakkatrina@users.noreply.github.com> Date: Mon, 11 Mar 2024 16:54:20 +0000 Subject: [PATCH] Update logs ordering (#2302) --- app/services/filter_manager.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/filter_manager.rb b/app/services/filter_manager.rb index 28962f0b6..ef74a5575 100644 --- a/app/services/filter_manager.rb +++ b/app/services/filter_manager.rb @@ -27,7 +27,7 @@ class FilterManager logs = logs.public_send("filter_by_#{category}", values, user) end - logs = logs.order(created_at: :desc) + logs = logs.order(id: :desc) if user.support? if logs.first&.lettings? logs.all.includes(:owning_organisation, :managing_organisation)