Use helper methods internally

This commit is contained in:
Matt Gibson 2024-04-25 11:04:02 -04:00
parent 3be728b8d0
commit e913708939
No known key found for this signature in database
GPG Key ID: 963EE038B0581878
1 changed files with 1 additions and 6 deletions

View File

@ -159,12 +159,7 @@ export class MigrationHelper {
async getAccounts<ExpectedAccountType>(): Promise<
{ userId: string; account: ExpectedAccountType }[]
> {
let userIds;
if (this.currentVersion < 60) {
userIds = await knownAccountUserIdsBuilderPre60(this.storageService);
} else {
userIds = await knownAccountUserIdsBuilder(this.storageService);
}
const userIds = await this.getKnownUserIds();
return Promise.all(
userIds.map(async (userId) => ({
userId,