From 4a74ff252b9bca4f9fee3aa8aeda761b73209adb Mon Sep 17 00:00:00 2001 From: ychung-mot Date: Wed, 24 Apr 2024 08:00:10 -0700 Subject: [PATCH 1/2] chore: prod resource --- helm/main/values-prod.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 From c987730b4ee3decaf088ea19a36975fbc279d5b7 Mon Sep 17 00:00:00 2001 From: ychung-mot Date: Wed, 24 Apr 2024 08:54:52 -0700 Subject: [PATCH 2/2] chore: transaction --- server/StrDss.Service/UserService.cs | 8 ++++++++ 1 file changed, 8 insertions(+) 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; }