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

callback first argument #20

Open
abdhalees opened this issue Aug 17, 2017 · 1 comment
Open

callback first argument #20

abdhalees opened this issue Aug 17, 2017 · 1 comment

Comments

@abdhalees
Copy link

abdhalees commented Aug 17, 2017

In line 35 you are passing an error as a first argument by a callback

and in 38 you are passing the response also as a first response

cb(orderlistObj);

you could handle the error in your handlers but it would be better to do it once

cb(null, orderlistObj);

@Sohadwd
Copy link
Contributor

Sohadwd commented Aug 17, 2017

This is the first version and we already solved it but not merged

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

2 participants