From 732347cebf1ee5256e03d0071350747c457c5d86 Mon Sep 17 00:00:00 2001 From: Dario Gabriel Lipicar Date: Fri, 29 Nov 2024 12:37:27 -0300 Subject: [PATCH] fix_: sort activity entries to list approvals before the intended tx --- services/wallet/activity/activity_v2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/wallet/activity/activity_v2.go b/services/wallet/activity/activity_v2.go index 5d6d62133..3c21e9b35 100644 --- a/services/wallet/activity/activity_v2.go +++ b/services/wallet/activity/activity_v2.go @@ -59,7 +59,7 @@ func getActivityEntriesV2(ctx context.Context, deps FilterDependencies, addresse rpt.uuid = rbtp.uuid`). LeftJoin(`route_input_parameters rip ON rpt.uuid = rip.uuid`) - q = q.OrderBy("tt.timestamp DESC") + q = q.OrderBy("tt.timestamp DESC", "rpt.is_approval ASC") qConditions := sq.And{}