From dba0944eb6451203ebb9564d2cecb0a8d8b81a67 Mon Sep 17 00:00:00 2001 From: Artem Date: Sun, 1 Sep 2024 13:37:51 +0300 Subject: [PATCH] Fix: merged actions sort --- internal/storage/postgres/action.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/storage/postgres/action.go b/internal/storage/postgres/action.go index 3e65d9b..18f8ea2 100644 --- a/internal/storage/postgres/action.go +++ b/internal/storage/postgres/action.go @@ -155,6 +155,7 @@ func (a *Action) ByRollupAndBridge(ctx context.Context, rollupId uint64, fltrs s Join("left join tx on tx.id = rollup_action.tx_id"). Join("left join action on action.id = rollup_action.action_id"). Join("left join fee on fee.action_id = rollup_action.action_id") + query = sortScope(query, "rollup_action.time", fltrs.Sort) err = query.Scan(ctx, &actions) return }