1
0
mirror of https://github.com/bitwarden/jslib synced 2025-12-23 03:33:29 +00:00

Refactor StateMigrationService DI

This commit is contained in:
Thomas Rittson
2022-03-25 13:11:03 +10:00
parent e8f2ae0a7b
commit 2d15bccc65
4 changed files with 10 additions and 14 deletions

View File

@@ -308,16 +308,7 @@ import { ValidationService } from "./validation.service";
},
{
provide: StateMigrationServiceAbstraction,
useFactory: (
storageService: StorageServiceAbstraction,
secureStorageService: StorageServiceAbstraction
) =>
new StateMigrationService(
storageService,
secureStorageService,
new StateFactory(GlobalState, Account)
),
deps: [StorageServiceAbstraction, "SECURE_STORAGE"],
useClass: StateMigrationService
},
{
provide: ExportServiceAbstraction,