Skip to content

Commit

Permalink
feat(2756): do not allow any account creation errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
koekiebox committed Jul 17, 2024
1 parent f231252 commit d169b9b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/backend/src/accounting/tigerbeetle/accounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@ export async function createAccounts(
}))
)
for (const { result } of errors) {
if (result !== CreateAccountErrorCode.linked_event_failed) {
if (result !== CreateAccountErrorCode.ok)
throw new TigerbeetleCreateAccountError(result)
}
}
}

Expand Down

0 comments on commit d169b9b

Please sign in to comment.