X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fperformance%2Fstorage%2FMongoDBStorage.ts;h=6bc43bbb8d16e15850aceda9a9b503cd6e1af00b;hb=1f5df42ad17d09d3a1f53f6618eba325a403d7ad;hp=4e1d0eb2f10afe818b2efa4df663035eb7b3cd6c;hpb=64a947062389248f0f04716cfac62f5e6a398769;p=e-mobility-charging-stations-simulator.git diff --git a/src/performance/storage/MongoDBStorage.ts b/src/performance/storage/MongoDBStorage.ts index 4e1d0eb2..6bc43bbb 100644 --- a/src/performance/storage/MongoDBStorage.ts +++ b/src/performance/storage/MongoDBStorage.ts @@ -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 {