From 365690c899558e5ab34d75dce095b4ac5c67bc6d Mon Sep 17 00:00:00 2001 From: DEV2DEV_DE Date: Tue, 28 Nov 2023 08:20:29 +0100 Subject: [PATCH] Fix syntax error in main.js --- main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index 5d7db56..fefdd5b 100644 --- a/main.js +++ b/main.js @@ -90,7 +90,7 @@ class Jablotron extends utils.Adapter { const cookie = response.headers['set-cookie']; if (cookie) { const sessionId = cookie.toString().split(';')[0]; - const serviceId = response.data['data']['service-data']['service-detail']['service-id'] + const serviceId = response.data['data']['service-data']['service-detail']['service-id']; this.log.debug('Session-ID: ' + sessionId); await this.parseResponse(response.data['data']['service-data']); if (firstStart) await this.getExtendedData(headers, sessionId, serviceId); @@ -134,7 +134,7 @@ class Jablotron extends utils.Adapter { url = `${baseUrl}/JA100/serviceListGet.json`; response = await axios.post(url, payload, { headers }); this.log.debug('serviceListGet: ' + JSON.stringify(response.data)); -} + } async getCurrentStatus() { this.fetchSessionId(this.config.username, this.config.password);