fix: fix error handling default options definition
[e-mobility-charging-stations-simulator.git] / src / performance / storage / Storage.ts
index 46a3a6db0af2170b54c3b6538ae25c10cc1a1796..bdf7acb1d43617bf177a19cba0a6cb1c0d8a04b5 100644 (file)
@@ -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 '${