refactor!: support RUB only (WealthLedger/main#55)
Filter non-RUB data at ingest, collapse per-currency collections into single RUB Money, drop currency from TbankPortfolioValuePoint, remove NON_RUB_ACTIVITY and screener currency filter. BREAKING CHANGE: per-currency API fields replaced with single RUB Money; stock screener currency param removed.
This commit is contained in:
@@ -268,7 +268,7 @@ describe('persistent ledger HTTP and cursor (SQLite)', () => {
|
||||
expect(
|
||||
income.data?.entries.map(({ id, occurredAt }) => ({ id, occurredAt })),
|
||||
).toEqual(expected);
|
||||
expect(income.data?.totalsByCurrency[0].total).toEqual({
|
||||
expect(income.data?.total.total).toEqual({
|
||||
currency: 'RUB',
|
||||
value: '2.000000002',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user