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

Fix Client#getProfile account not found error #92

Merged
merged 2 commits into from
Dec 21, 2021

Conversation

taradinoc
Copy link
Contributor

client.getProfile([name1, name2, ...]) (with an array parameter) throws an exception if one of the names can't be looked up. The exception originates in the User constructor, because the errors.com.epicgames.account.account_not_found error is ignored and undefined is passed to the constructor. This change fixes it by omitting the failed lookups from the result array instead of constructing Users for them.

@ThisNils ThisNils merged commit 01c9c2d into fnbrjs:master Dec 21, 2021
@taradinoc taradinoc deleted the getprofile-notfound branch December 21, 2021 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants