Bound most called methods in the OCPP stack
[e-mobility-charging-stations-simulator.git] / src / charging-station / Bootstrap.ts
index b5e90bd80fcdae1f55bf3e65b9d2e0e3831fd04b..0fa2c88d35c868650e76fa059a86f75d96c54b7e 100644 (file)
@@ -60,7 +60,7 @@ export default class Bootstrap {
   }
 
   public static getInstance(): Bootstrap {
-    if (!Bootstrap.instance) {
+    if (Bootstrap.instance === null) {
       Bootstrap.instance = new Bootstrap();
     }
     return Bootstrap.instance;
@@ -194,7 +194,7 @@ export default class Bootstrap {
         path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../'),
         'assets',
         'station-templates',
-        path.basename(stationTemplateUrl.file)
+        stationTemplateUrl.file
       ),
     };
     await this.workerImplementation.addElement(workerData);