Method renaming.
[e-mobility-charging-stations-simulator.git] / src / charging-station / ChargingStation.js
index 12501d542bb1fecb7cacf1e0a42ef9056f45d803..2bed5ff0ef5ffc69c209248bccfb1ab2fc85b8c5 100644 (file)
@@ -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);
       }