From 27c73ea644b33d1462c98e5a49c89f029913f64d Mon Sep 17 00:00:00 2001 From: Maximilian Kreuzkam Date: Thu, 19 Dec 2024 14:14:13 +0100 Subject: [PATCH] remove async/await. --- .../account/domain/services/account-idm.service.spec.ts | 2 +- .../modules/account/domain/services/account-idm.service.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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; }