From 56154d801742706db3cd357a9193a7569751d337 Mon Sep 17 00:00:00 2001 From: Ingo Fischer Date: Tue, 31 May 2022 11:43:43 +0200 Subject: [PATCH] * (Apollon77) Workaround an admin issue when testing connection to InfluxDB --- main.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/main.js b/main.js index 6cf35c7..ef0119e 100644 --- a/main.js +++ b/main.js @@ -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); }