refactor: cleanup storage type case
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 24 Apr 2023 16:50:46 +0000 (18:50 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 24 Apr 2023 16:50:46 +0000 (18:50 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/performance/storage/MikroOrmStorage.ts
src/types/index.ts

index 72fc82e87e21d1fb990553fd2b12b7328ed436a0..d77b95a0cbee9bc3a4a993f21a34e241c7ac1e14 100644 (file)
@@ -10,7 +10,7 @@ import {
 import { TsMorphMetadataProvider } from '@mikro-orm/reflection';
 
 import {
-  type MikroORMDBType,
+  type MikroOrmDbType,
   PerformanceData,
   PerformanceRecord,
   type Statistics,
@@ -75,7 +75,7 @@ export class MikroOrmStorage extends Storage {
     return {
       metadataProvider: TsMorphMetadataProvider,
       entities: [PerformanceRecord, PerformanceData],
-      type: this.storageType as MikroORMDBType,
+      type: this.storageType as MikroOrmDbType,
       clientUrl: this.getClientUrl(),
     };
   }
index 1e1842de984f05249ad3843261b4553a3d17d7ea..8b060dd0bfc891b7ebcb06736ec8c6226fca0758 100644 (file)
@@ -92,7 +92,7 @@ export {
   MeterValueUnit,
   type MeterValuesRequest,
   type MeterValuesResponse,
-  type MikroOrmDbType as MikroORMDBType,
+  type MikroOrmDbType,
   OCPP16AuthorizationStatus,
   type OCPP16AuthorizeRequest,
   type OCPP16AuthorizeResponse,