diff --git a/apps/server/src/modules/account/domain/services/account-idm.service.spec.ts b/apps/server/src/modules/account/domain/services/account-idm.service.spec.ts index 490ab3faa4..8baa91c680 100644 --- a/apps/server/src/modules/account/domain/services/account-idm.service.spec.ts +++ b/apps/server/src/modules/account/domain/services/account-idm.service.spec.ts @@ -219,7 +219,7 @@ describe('AccountIdmService', () => { }); describe('saveAll', () => { - describe('when save multiple accounts', () => { + describe('when saving multiple accounts', () => { const setup = () => { const mockAccountSaves = [ { diff --git a/apps/server/src/modules/account/domain/services/account-idm.service.ts b/apps/server/src/modules/account/domain/services/account-idm.service.ts index bd061f6751..3fa1c84e2d 100644 --- a/apps/server/src/modules/account/domain/services/account-idm.service.ts +++ b/apps/server/src/modules/account/domain/services/account-idm.service.ts @@ -121,9 +121,9 @@ export class AccountServiceIdm extends AbstractAccountService { return this.accountIdmToDoMapper.mapToDo(updatedAccount); } - public async saveAll(accountSaves: AccountSave[]): Promise { + public saveAll(accountSaves: AccountSave[]): Promise { const savePromises = accountSaves.map((accountSave) => this.save(accountSave)); - const savedAccounts = await Promise.all(savePromises); + const savedAccounts = Promise.all(savePromises); return savedAccounts; }