fix tests

This commit is contained in:
crn4
2025-10-31 15:46:16 +01:00
parent 435a342a36
commit ee7bda446d
2 changed files with 14 additions and 7 deletions

View File

@@ -1230,9 +1230,9 @@ func (s *SqlStore) getAccount(ctx context.Context, accountID string) (*types.Acc
)
if err != nil {
if errors.Is(err, pgx.ErrNoRows) {
return nil, errors.New("account not found")
return nil, status.NewAccountNotFoundError(accountID)
}
return nil, err
return nil, status.NewGetAccountFromStoreError(err)
}
_ = json.Unmarshal(networkNet, &account.Network.Net)