Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
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
GH-2048: Display premium icons & subscription info & GH-2036: Unlock Plus features on GBE/Midnight for all Premium & Plus users #546
GH-2048: Display premium icons & subscription info & GH-2036: Unlock Plus features on GBE/Midnight for all Premium & Plus users #546
Changes from 1 commit
901c4faf944c6ce035e69659749b2a83d42de02e6c53378f0a10bd6c7e552d2eb438329eb39bd2d2aa909383ab6f7b36a9f545e7b2fcc862ef915474fc3f532a9ffcbf120d4d7fe5a2433c506a0586ff5a77797c18167640847e49d25d313c9ad1de6398be1eb337bc3d51fd023e5eb749eb74947f1cd5ead0930File filter
Jump to
Refactor account#getUserSubscriptionData to return an array of subscr…
wlycdgrMay 12, 2020
Member
Good idea to add this!
wlycdgrMay 12, 2020
Member
- We can simplify/dedupe this by usng
- We need to make sure we don't clobber Premium subsciption data with Plus subscription data in
Looking much better, just a couple more things:
forEachto iterate once over thesubarray, checking whether theproductNameof each element is in aproductNamesarray we define, and pushing the element to thesubscriptionsarray if so._setSubscriptionDatain case the user has both and the Plus sub is found after the Premium one.wlycdgrMay 12, 2020
Member
Let's not worry about the
forEachchange for now