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

Action with Arguments not working #6

Open
zoernert opened this issue Jun 2, 2022 · 0 comments
Open

Action with Arguments not working #6

zoernert opened this issue Jun 2, 2022 · 0 comments

Comments

@zoernert
Copy link

zoernert commented Jun 2, 2022

Code from sample in API.md:

tx2.action('run_query', arg1, (cb) => {
  cb({ success: arg1 })
})

produces a ReferenceError: arg1 is not defined

This is logic to me as it is provided as a parameter and not as a declaration.

zoernert added a commit to zoernert/tx2 that referenced this issue Jun 2, 2022
Corrects documentation ( pm2#6 )
@zoernert zoernert mentioned this issue Jun 2, 2022
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