X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2FChargingStation.js;h=2bed5ff0ef5ffc69c209248bccfb1ab2fc85b8c5;hb=83045896422827d214fa8795795967d1688d1533;hp=12501d542bb1fecb7cacf1e0a42ef9056f45d803;hpb=6958152c0cb4058988ea37936220c0244665ebeb;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/ChargingStation.js b/src/charging-station/ChargingStation.js index 12501d54..2bed5ff0 100644 --- a/src/charging-station/ChargingStation.js +++ b/src/charging-station/ChargingStation.js @@ -24,7 +24,7 @@ class ChargingStation { this._isSocketRestart = false; - this._authorizedTags = this._getAuthorizedTags(); + this._authorizedTags = this._loadAndGetAuthorizedTags(); } _initialize() { @@ -57,7 +57,7 @@ class ChargingStation { return this._stationInfo.authorizationFile ? this._stationInfo.authorizationFile : ''; } - _getAuthorizedTags() { + _loadAndGetAuthorizedTags() { let authorizedTags = []; const authorizationFile = this._getAuthorizationFile(); if (authorizationFile) { @@ -81,7 +81,7 @@ class ChargingStation { try { logger.debug(this._basicFormatLog() + ' Authorization file ' + this._getAuthorizationFile() + ' have changed, reload'); // Initialize _authorizedTags - this._authorizedTags = this._getAuthorizedTags(); + this._authorizedTags = this._loadAndGetAuthorizedTags(); } catch (error) { logger.error(this._basicFormatLog() + ' Authorization file monitoring error: ' + error); }