X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fperformance%2Fstorage%2FStorage.ts;h=4c9ece358075875d4934c9e80111826485bb5919;hb=6a4032b5d8f3cbaa18d3beddcdfe9d335c1cba90;hp=f0fda133d1862c703742e296e4b06e85876b2d81;hpb=9bf0ef23c51160abc6866ad8d07eea85e308edb8;p=e-mobility-charging-stations-simulator.git diff --git a/src/performance/storage/Storage.ts b/src/performance/storage/Storage.ts index f0fda133..4c9ece35 100644 --- a/src/performance/storage/Storage.ts +++ b/src/performance/storage/Storage.ts @@ -25,7 +25,7 @@ export abstract class Storage { type: StorageType, error: Error, table?: string, - params: HandleErrorParams = { throwError: false, consoleOut: false } + params: HandleErrorParams = { throwError: false, consoleOut: false }, ): void { setDefaultErrorParams(params, { throwError: false, consoleOut: false }); const inTableOrCollectionStr = @@ -34,7 +34,7 @@ export abstract class Storage { `${this.logPrefix} ${this.getDBNameFromStorageType(type)} error '${ error.message }'${inTableOrCollectionStr}:`, - error + error, ); if (params?.throwError) { throw error; @@ -57,6 +57,6 @@ export abstract class Storage { public abstract open(): void | Promise; public abstract close(): void | Promise; public abstract storePerformanceStatistics( - performanceStatistics: Statistics + performanceStatistics: Statistics, ): void | Promise; }