Skip to content

Conversation

nioc
Copy link
Contributor

@nioc nioc commented Feb 22, 2025

Hello, I propose this PR to allow multiple calls in parallel (in case using split/join nodes).
I've also slightly modified the code to allow a call without a payload.

"dependencies": {
"tough-cookie": "^4.1.3",
"axios": "1.7.4",
"axios": "^1.7.9",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Minor update.

site = msg.payload.site;
} else {
site = server.site;
if (msg.payload) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Avoiding crash if there is no payload in message

}

let { username, password, site, ip, port, unifios, ssl } = server;
let { command } = config;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This variable was not used, so I removed it.

}

let { username, password, site, ip, port, unifios, ssl } = server;
let { command, debug } = config;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

As it was declared at parent scope, parallel calls overrode the same variable.

@Isaksson
Copy link
Owner

Hello.
Thanks for the changes.

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