fix(ocpp-server): silence linter
[e-mobility-charging-stations-simulator.git] / src / performance / storage / Storage.ts
index 46a3a6db0af2170b54c3b6538ae25c10cc1a1796..ccdbb3f835411c27521e1c17df33002d7cfd259a 100644 (file)
@@ -22,7 +22,7 @@ export abstract class Storage {
     this.logPrefix = logPrefix
   }
 
-  protected handleDBError (
+  protected handleDBStorageError (
     type: StorageType,
     error: Error,
     table?: string,
@@ -31,7 +31,7 @@ export abstract class Storage {
       consoleOut: false
     }
   ): void {
-    setDefaultErrorParams(params, { throwError: false, consoleOut: false })
+    params = setDefaultErrorParams(params, { throwError: false, consoleOut: false })
     const inTableOrCollectionStr = table != null && ` in table or collection '${table}'`
     logger.error(
       `${this.logPrefix} ${this.getDBNameFromStorageType(type)} error '${