Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for multiple accounts on the same platform #21

Open
MiracleXYZ opened this issue Oct 18, 2020 · 1 comment
Open

Add support for multiple accounts on the same platform #21

MiracleXYZ opened this issue Oct 18, 2020 · 1 comment
Labels
bug Something isn't working enhancement New feature or request priority High priority issue

Comments

@MiracleXYZ
Copy link

Sometimes I need to track total subs of multiple accounts on a single platform. But the current query format

GET /?source={SOURCE}&queryKey={QUERY1}&source={SOURCE}&queryKey={QUERY2} ....

is not working properly. totalSubs is correct, but subsInEachSource only shows the last one. An example is here.

@spencerwooo spencerwooo added bug Something isn't working enhancement New feature or request priority High priority issue labels Oct 19, 2020
@spencerwooo
Copy link
Owner

Ok, so:

subsInEachSource only shows the last one.

is because the current implementation overwrites the value for subsInEachSource if multiple queries for the same source is requested, as coded here:

fetchStatsRes.subsInEachSource[res.value.source] = res.value.subs

So how would you propose to implement this? Return an array of numbers in the same sequence as given by the request if there are multiple queries for the same platform?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request priority High priority issue
Projects
None yet
Development

No branches or pull requests

2 participants