From a904cd499e1f9684cb74b08941ee2d8cc9fe10fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6ran=20Sander?= Date: Wed, 23 Oct 2024 06:45:18 +0000 Subject: [PATCH] Source code formatting --- src/globals.js | 1 - src/lib/post-to-influxdb.js | 8 ++++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/globals.js b/src/globals.js index cd8e6a6a..93445f57 100755 --- a/src/globals.js +++ b/src/globals.js @@ -686,7 +686,6 @@ class Settings { this.logger.info(`CONFIG: Influxdb not enabled, skipping setup of db.`); } - // ------------------------------------ // Create MQTT client object and connect to MQTT broker // Only do this if MQTT is enabled diff --git a/src/lib/post-to-influxdb.js b/src/lib/post-to-influxdb.js index 3937a6ef..791569cc 100755 --- a/src/lib/post-to-influxdb.js +++ b/src/lib/post-to-influxdb.js @@ -1000,9 +1000,13 @@ export async function postLogEventToInfluxdb(msg) { subsystem: msg.subsystem?.length > 0 ? msg.subsystem : '', method: msg.method?.length > 0 ? msg.method : '', object_type: msg.object_type?.length > 0 ? msg.object_type : '', - proxy_session_id: msg.proxy_session_id?.length > 0 ? msg.proxy_session_id : '-1', + proxy_session_id: + msg.proxy_session_id?.length > 0 ? msg.proxy_session_id : '-1', session_id: msg.session_id?.length > 0 ? msg.session_id : '-1', - event_activity_source: msg.event_activity_source?.length > 0 ? msg.event_activity_source : '', + event_activity_source: + msg.event_activity_source?.length > 0 + ? msg.event_activity_source + : '', }; // Tags that are empty in some cases. Only add if they are non-empty