1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-25 08:09:38 +02:00

Fix date format validation error (#1551)

* Fix date format validation error

* Order trades, fix flaky test
This commit is contained in:
Zach Gollwitzer 2024-12-16 13:21:30 -05:00 committed by GitHub
parent 54e46c1b4e
commit bb9fa56add
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -98,7 +98,7 @@ class Account::HoldingCalculator
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