feat: add performance statistics to UI protocol
[e-mobility-charging-stations-simulator.git] / src / performance / storage / StorageFactory.ts
index 8753bea1159d863f83b6a08cf2f0b102039d3219..9da6b54e98fa1d181b9a8c982e0b9d365535fa9f 100644 (file)
@@ -3,6 +3,7 @@
 import { JsonFileStorage } from './JsonFileStorage.js'
 import { MikroOrmStorage } from './MikroOrmStorage.js'
 import { MongoDBStorage } from './MongoDBStorage.js'
+import { None } from './None.js'
 import type { Storage } from './Storage.js'
 import { BaseError } from '../../exception/index.js'
 import { StorageType } from '../../types/index.js'
@@ -31,6 +32,9 @@ export class StorageFactory {
       case StorageType.MYSQL:
         storageInstance = new MikroOrmStorage(connectionUri, logPrefix, type)
         break
+      case StorageType.NONE:
+        storageInstance = new None()
+        break
       default:
         // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
         throw new BaseError(`${logPrefix} Unknown storage type: ${type}`)