Use camel case everywhere
[e-mobility-charging-stations-simulator.git] / src / performance / storage / MongoDBStorage.ts
index 4e1d0eb2f10afe818b2efa4df663035eb7b3cd6c..6bc43bbb8d16e15850aceda9a9b503cd6e1af00b 100644 (file)
@@ -10,11 +10,11 @@ export class MongoDBStorage extends Storage {
   private readonly client: MongoClient | null;
   private connected: boolean;
 
-  constructor(storageURI: string, logPrefix: string) {
-    super(storageURI, logPrefix);
-    this.client = new MongoClient(this.storageURI.toString());
+  constructor(storageUri: string, logPrefix: string) {
+    super(storageUri, logPrefix);
+    this.client = new MongoClient(this.storageUri.toString());
     this.connected = false;
-    this.dbName = this.storageURI.pathname.replace(/(?:^\/)|(?:\/$)/g, '') ?? Constants.DEFAULT_PERFORMANCE_RECORDS_DB_NAME;
+    this.dbName = this.storageUri.pathname.replace(/(?:^\/)|(?:\/$)/g, '') ?? Constants.DEFAULT_PERFORMANCE_RECORDS_DB_NAME;
   }
 
   public async storePerformanceStatistics(performanceStatistics: Statistics): Promise<void> {