Skip to content

Commit

Permalink
Fix syntax error in main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
DEV2DEV-DE committed Nov 28, 2023
1 parent c8b9fb7 commit 365690c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 365690c

Please sign in to comment.