chore: fix uuid generation for importers
This commit is contained in:
@@ -81,6 +81,7 @@ import {
|
||||
GetHost,
|
||||
SetHost,
|
||||
MfaServiceInterface,
|
||||
GenerateUuid,
|
||||
} from '@standardnotes/services'
|
||||
import {
|
||||
SNNote,
|
||||
@@ -112,7 +113,6 @@ import {
|
||||
removeFromArray,
|
||||
isNullOrUndefined,
|
||||
sleep,
|
||||
UuidGenerator,
|
||||
useBoolean,
|
||||
LoggerInterface,
|
||||
canBlockDeinit,
|
||||
@@ -932,10 +932,6 @@ export class SNApplication implements ApplicationInterface, AppGroupManagedAppli
|
||||
return this.migrations.hasPendingMigrations()
|
||||
}
|
||||
|
||||
public generateUuid(): string {
|
||||
return UuidGenerator.GenerateUuid()
|
||||
}
|
||||
|
||||
public presentKeyRecoveryWizard(): void {
|
||||
const service = this.dependencies.get<KeyRecoveryService>(TYPES.KeyRecoveryService)
|
||||
return service.presentKeyRecoveryWizard()
|
||||
@@ -1243,6 +1239,10 @@ export class SNApplication implements ApplicationInterface, AppGroupManagedAppli
|
||||
return this.dependencies.get<MfaService>(TYPES.MfaService)
|
||||
}
|
||||
|
||||
public get generateUuid(): GenerateUuid {
|
||||
return this.dependencies.get<GenerateUuid>(TYPES.GenerateUuid)
|
||||
}
|
||||
|
||||
private get migrations(): MigrationService {
|
||||
return this.dependencies.get<MigrationService>(TYPES.MigrationService)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user