From 474b2482404152b1c3ebeea20c1369cfac9f527e Mon Sep 17 00:00:00 2001 From: arteck <6681528+arteck@users.noreply.github.com> Date: Wed, 25 Oct 2023 19:15:54 +0200 Subject: [PATCH] Update main.js --- main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index 0106592..473d9dd 100644 --- a/main.js +++ b/main.js @@ -285,9 +285,9 @@ class judoisoftControll extends utils.Adapter { try { setTimeout(function() { - _tokenData = await this.getTokenFirst(); + _tokenData = this.getTokenFirst(); if (_tokenData != null) { - let conResult = await axios.get(baseUrl + "?token=" + _tokenData + "&group=register&command=get%20device%20data", {httpsAgent: agent}); + let conResult = axios.get(baseUrl + "?token=" + _tokenData + "&group=register&command=get%20device%20data", {httpsAgent: agent}); clearInterval(_requestInterval); this.getInfosCloud(); }