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

logic/transaction: Wrong use of this context on countById() function #56

Open
jarenal opened this issue Oct 30, 2017 · 0 comments
Open

Comments

@jarenal
Copy link
Member

jarenal commented Oct 30, 2017

Testing countById() function at logic/transfer module, I've noticed that if self.scope.db.one() returns a reject Promise, the code fail when try to call to...

this.scope.logger.error(err.stack);

because the "this" inside the "catch()" clause has not access to the scope.

jarenal added a commit that referenced this issue Oct 30, 2017
@jarenal jarenal changed the title logic/transfer: Wrong use of this context on countById() function logic/transaction: Wrong use of this context on countById() function Nov 2, 2017
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