Silence linter some more
[e-mobility-charging-stations-simulator.git] / src / performance / storage / MikroORMStorage.ts
index c06617f6253683f17065e90c9b7cba8cfa45eb20..6c9e63d8da96b87452bfdbc6330d79c725347514 100644 (file)
@@ -25,7 +25,7 @@ export class MikroORMStorage extends Storage {
       const performanceRecord = new PerformanceRecord();
       await this.orm.em.persistAndFlush(performanceRecord);
     } catch (error) {
-      this.handleDBError(this.storageType, error, Constants.PERFORMANCE_RECORDS_TABLE);
+      this.handleDBError(this.storageType, error as Error, Constants.PERFORMANCE_RECORDS_TABLE);
     }
   }
 
@@ -35,7 +35,7 @@ export class MikroORMStorage extends Storage {
         this.orm = await MikroORM.init(this.getOptions(), true);
       }
     } catch (error) {
-      this.handleDBError(this.storageType, error);
+      this.handleDBError(this.storageType, error as Error);
     }
   }
 
@@ -46,7 +46,7 @@ export class MikroORMStorage extends Storage {
         this.orm = null;
       }
     } catch (error) {
-      this.handleDBError(this.storageType, error);
+      this.handleDBError(this.storageType, error as Error);
     }
   }