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

Fix examples of push gateway in README.md #526

Merged
merged 1 commit into from
Dec 8, 2022
Merged

Fix examples of push gateway in README.md #526

merged 1 commit into from
Dec 8, 2022

Conversation

mrfussion
Copy link
Contributor

@mrfussion mrfussion commented Dec 7, 2022

It's a simple correction in the examples so that newbies don't get frustrated :)

i change .then({ resp, body } => { for .then(({ resp, body }) => { in all examples

specific error:

.then({ resp, body } => {
            ^^^^^^^^^^^^^

SyntaxError: Malformed arrow function parameter list
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
    at internal/main/run_main_module.js:17:47

Copy link
Collaborator

@zbjornson zbjornson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants