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

开发REST API那里product如何使用异步请求的数据 #12

Closed
ohblue opened this issue Jul 2, 2019 · 1 comment
Closed

开发REST API那里product如何使用异步请求的数据 #12

ohblue opened this issue Jul 2, 2019 · 1 comment

Comments

@ohblue
Copy link

ohblue commented Jul 2, 2019

product的数据通过接口请求数据库再返回的话,此时controllers里就拿不到返回的数据了。

@ohblue
Copy link
Author

ohblue commented Jul 7, 2019

用util.promisify()搞定了

@ohblue ohblue closed this as completed Jul 7, 2019
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

No branches or pull requests

1 participant