X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fperformance%2Fstorage%2FMikroOrmStorage.ts;h=1953491adb698692172c7595ac57e28016cc7360;hb=100680888f3b49453ddb4081988a480ee3030d07;hp=82bdd23419fde02c82419952c17b2597a5c7c75f;hpb=95b343745d755d2209f028f676c9d25527e7eb4b;p=e-mobility-charging-stations-simulator.git diff --git a/src/performance/storage/MikroOrmStorage.ts b/src/performance/storage/MikroOrmStorage.ts index 82bdd234..1953491a 100644 --- a/src/performance/storage/MikroOrmStorage.ts +++ b/src/performance/storage/MikroOrmStorage.ts @@ -54,15 +54,20 @@ export class MikroOrmStorage extends Storage { if (this.storageType === StorageType.SQLITE) { return `${Constants.DEFAULT_PERFORMANCE_RECORDS_DB_NAME}.db`; } - return this.storageUri.pathname.replace(/(?:^\/)|(?:\/$)/g, '') ?? Constants.DEFAULT_PERFORMANCE_RECORDS_DB_NAME; + return ( + this.storageUri.pathname.replace(/(?:^\/)|(?:\/$)/g, '') ?? + Constants.DEFAULT_PERFORMANCE_RECORDS_DB_NAME + ); } - private getOptions(): Configuration> | Options> { + private getOptions(): + | Configuration> + | Options> { return { metadataProvider: TsMorphMetadataProvider, entities: [PerformanceRecord, PerformanceData], type: this.storageType as MikroORMDBType, - clientUrl: this.getClientUrl() + clientUrl: this.getClientUrl(), }; } @@ -75,4 +80,3 @@ export class MikroOrmStorage extends Storage { } } } -