Skip to content

Commit

Permalink
Merge pull request #566 from formancehq/fix/test-account-ordering
Browse files Browse the repository at this point in the history
fix: flaky test (account ordering not specified)
  • Loading branch information
gfyrag authored Nov 14, 2024
2 parents d4721e2 + e79871a commit 7023481
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/storage/ledger/volumes.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ func (s *Store) selectVolumes(oot, pit *time.Time, useInsertionDate bool, groupL
ColumnExpr("sum(case when not is_source then amount else -amount end) as balance").
ModelTableExpr(s.GetPrefixedRelationName("moves")).
Where("ledger = ?", s.ledger.Name).
GroupExpr("accounts_address, asset")
GroupExpr("accounts_address, asset").
Order("accounts_address", "asset")

dateFilterColumn := "effective_date"
if useInsertionDate {
Expand Down

0 comments on commit 7023481

Please sign in to comment.