From d169b9b3ae43c3dad5b5d594cdc330c223d7723a Mon Sep 17 00:00:00 2001 From: koekiebox Date: Wed, 17 Jul 2024 14:42:45 +0200 Subject: [PATCH] feat(2756): do not allow any account creation errors. --- packages/backend/src/accounting/tigerbeetle/accounts.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/backend/src/accounting/tigerbeetle/accounts.ts b/packages/backend/src/accounting/tigerbeetle/accounts.ts index 5498c05252..082667b7d9 100644 --- a/packages/backend/src/accounting/tigerbeetle/accounts.ts +++ b/packages/backend/src/accounting/tigerbeetle/accounts.ts @@ -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) - } } }