Skip to content

Commit

Permalink
Order trades, fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
zachgoll committed Dec 16, 2024
1 parent 08894f9 commit df3e173
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/account/holding_calculator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def gapfill_holdings(holdings)
end

def trades
@trades ||= account.entries.includes(entryable: :security).account_trades.to_a
@trades ||= account.entries.includes(entryable: :security).account_trades.chronological.to_a
end

def portfolio_start_date
Expand Down

0 comments on commit df3e173

Please sign in to comment.