fix duplicate accounts
All checks were successful
Build and Push Docker Image / build_and_push (push) Successful in 2m22s

This commit is contained in:
Arnaud Delcasse
2026-01-13 12:38:46 +01:00
parent b0b3de1f63
commit 0c982c8f47
3 changed files with 10 additions and 7 deletions

View File

@@ -78,7 +78,7 @@ func (s MobilityAccountsServerImpl) GetAccount(ctx context.Context, req *GetAcco
account, err := s.handler.GetAccount(req.Id)
if err != nil {
log.Error().Err(err).Msg("")
return nil, status.Errorf(codes.AlreadyExists, "issue while retrieving account : %v", err)
return nil, status.Errorf(codes.NotFound, "issue while retrieving account : %v", err)
}
response, err := AccountFromStorageType(account)
if err != nil {
@@ -91,7 +91,7 @@ func (s MobilityAccountsServerImpl) GetAccountUsername(ctx context.Context, req
account, err := s.handler.GetAccountUsername(req.Username, req.Namespace)
if err != nil {
log.Error().Err(err).Msg("")
return nil, status.Errorf(codes.AlreadyExists, "issue while retrieving account : %v", err)
return nil, status.Errorf(codes.NotFound, "issue while retrieving account : %v", err)
}
response, err := AccountFromStorageType(account)
if err != nil {