Fix incorrect partial sync balance generation #1223

Merged
zachgoll merged 1 commits from 1204-bug-incorrect-total-value-every-day-in-foreign-currency-account into main 2024-10-02 01:15:24 +08:00
zachgoll commented 2024-10-02 01:10:09 +08:00 (Migrated from github.com)

For partial syncs, when searching for the "last synced balance", we were not filtering on currency.

Because of this, for foreign currency accounts in some cases, we were fetching the "converted" balance, causing the bug described in #1204

For partial syncs, when searching for the "last synced balance", we were not filtering on currency. Because of this, for _foreign currency accounts_ in _some cases_, we were fetching the "converted" balance, causing the bug described in #1204
Sign in to join this conversation.