Skip to content

[Bug]: fetching a statistical split on account with accounts provided results into incorrect results #30

@gjong

Description

@gjong

What happened?

The v2/api/balance/account API was called with the following:

{"range":{"startDate":"1970-01-01","endDate":"2026-04-01"},"accounts":[1021,234,236,237,235,761,257,258,822,1094]}

This results into incorrect results as the API fetches all accounts then itterates over them to fetch the statistical balance, but since accounts are also in the body it also adds those as filters.

What browsers are you seeing the problem on?

No response

Relevant log output

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions