From: Jérôme Benoit Date: Sun, 18 Oct 2020 06:50:32 +0000 (+0200) Subject: Method renaming. X-Git-Tag: v1.0.1-0~287 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=83045896422827d214fa8795795967d1688d1533;p=e-mobility-charging-stations-simulator.git Method renaming. Signed-off-by: Jérôme Benoit --- 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); }