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

Remove the prompt printed in the middle of subscribe cmd #371

Closed
daonb opened this issue May 29, 2023 · 5 comments
Closed

Remove the prompt printed in the middle of subscribe cmd #371

daonb opened this issue May 29, 2023 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@daonb
Copy link
Contributor

daonb commented May 29, 2023

Need to refactor the command to return a Promise and to call resolve() when truly finished.

@daonb daonb added the bug Something isn't working label May 29, 2023
@eyal-sasson
Copy link
Contributor

what prompt? its really hard to test it on the web

@daonb
Copy link
Contributor Author

daonb commented May 31, 2023

Look at the code of the subscribe command function and you can see it returns before the operation is completed. We've talked about it briefly last week - we need to return a Prmosie and call resolve only when the command is done.

@eyal-sasson
Copy link
Contributor

are we talking about shell.onPurchasesUpdate(data)? its the line commented out.
i will refactor it to be asynchronous. what do we pass as data?

@daonb
Copy link
Contributor Author

daonb commented Jun 1, 2023 via email

@daonb
Copy link
Contributor Author

daonb commented Jun 6, 2023

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants