diff --git a/helm/main/values-prod.yaml b/helm/main/values-prod.yaml index ac7d6632..df4236a3 100644 --- a/helm/main/values-prod.yaml +++ b/helm/main/values-prod.yaml @@ -27,7 +27,7 @@ route: frontend: enabled: true - replicaCount: 3 + replicaCount: 2 nameOverride: strdss-prod-frontend fullnameOverride: strdss-prod-frontend secretName: strdss-secrets-prod @@ -54,7 +54,7 @@ frontend: backend: enabled: true - replicaCount: 3 + replicaCount: 2 nameOverride: strdss-prod-backend fullnameOverride: strdss-prod-backend secretName: strdss-secrets-prod diff --git a/server/StrDss.Service/UserService.cs b/server/StrDss.Service/UserService.cs index 7321abcb..b6922c67 100644 --- a/server/StrDss.Service/UserService.cs +++ b/server/StrDss.Service/UserService.cs @@ -234,6 +234,8 @@ public async Task>> DenyAccessRequest(AccessRequ await _userRepo.DenyAccessRequest(dto); + using var transaction = _unitOfWork.BeginTransaction(); + _unitOfWork.Commit(); if (user.EmailAddressDsc!.IsEmpty()) @@ -275,6 +277,8 @@ public async Task>> DenyAccessRequest(AccessRequ _unitOfWork.Commit(); + _unitOfWork.CommitTransaction(transaction); + return errors; } @@ -332,6 +336,8 @@ public async Task>> ApproveAccessRequest(AccessR await _userRepo.ApproveAccessRequest(dto, role); + using var transaction = _unitOfWork.BeginTransaction(); + _unitOfWork.Commit(); if (user.EmailAddressDsc!.IsEmpty()) @@ -374,6 +380,8 @@ public async Task>> ApproveAccessRequest(AccessR _unitOfWork.Commit(); + _unitOfWork.CommitTransaction(transaction); + return errors; }