Skip to content

Commit

Permalink
* (Apollon77) Workaround an admin issue when testing connection to In…
Browse files Browse the repository at this point in the history
…fluxDB
  • Loading branch information
Apollon77 committed May 31, 2022
1 parent ae2c634 commit 56154d8
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -445,13 +445,6 @@ function getRetention(adapter, msg) {

function testConnection(adapter, msg) {
adapter.log.debug(`testConnection msg-object: ${JSON.stringify(msg)}`);
if (msg && msg.message && typeof msg.message.config === 'string') {
try {
msg.message.config = JSON.parse(msg.message.config);
} catch (err) {
return adapter.sendTo(msg.from, msg.command, {error: `Could not parse test configuration: ${err.message}`}, msg.callback);
}
}
if (!msg || !msg.message || !isObject(msg.message.config)) {
return adapter.sendTo(msg.from, msg.command, {error: 'Invalid test configuration.'}, msg.callback);
}
Expand Down

0 comments on commit 56154d8

Please sign in to comment.