Skip to content

Commit

Permalink
remove async/await.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkreuzkam-cap committed Dec 19, 2024
1 parent d534101 commit 27c73ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ describe('AccountIdmService', () => {
});

describe('saveAll', () => {
describe('when save multiple accounts', () => {
describe('when saving multiple accounts', () => {
const setup = () => {
const mockAccountSaves = [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ export class AccountServiceIdm extends AbstractAccountService {
return this.accountIdmToDoMapper.mapToDo(updatedAccount);
}

public async saveAll(accountSaves: AccountSave[]): Promise<Account[]> {
public saveAll(accountSaves: AccountSave[]): Promise<Account[]> {
const savePromises = accountSaves.map((accountSave) => this.save(accountSave));
const savedAccounts = await Promise.all(savePromises);
const savedAccounts = Promise.all(savePromises);

return savedAccounts;
}
Expand Down

0 comments on commit 27c73ea

Please sign in to comment.