fix_: sort activity entries to list approvals before the intended tx

This commit is contained in:
Dario Gabriel Lipicar 2024-11-29 12:37:27 -03:00 committed by dlipicar
parent 7be222a1d2
commit 732347cebf
1 changed files with 1 additions and 1 deletions

View File

@ -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{}