Skip to content

Commit

Permalink
Merge pull request #224 from bcgov/yj
Browse files Browse the repository at this point in the history
chore: prod resource
  • Loading branch information
ychung-mot authored Apr 24, 2024
2 parents 1b69212 + c987730 commit 5521009
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helm/main/values-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ route:

frontend:
enabled: true
replicaCount: 3
replicaCount: 2
nameOverride: strdss-prod-frontend
fullnameOverride: strdss-prod-frontend
secretName: strdss-secrets-prod
Expand All @@ -54,7 +54,7 @@ frontend:
backend:
enabled: true
replicaCount: 3
replicaCount: 2
nameOverride: strdss-prod-backend
fullnameOverride: strdss-prod-backend
secretName: strdss-secrets-prod
Expand Down
8 changes: 8 additions & 0 deletions server/StrDss.Service/UserService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ public async Task<Dictionary<string, List<string>>> DenyAccessRequest(AccessRequ

await _userRepo.DenyAccessRequest(dto);

using var transaction = _unitOfWork.BeginTransaction();

_unitOfWork.Commit();

if (user.EmailAddressDsc!.IsEmpty())
Expand Down Expand Up @@ -275,6 +277,8 @@ public async Task<Dictionary<string, List<string>>> DenyAccessRequest(AccessRequ

_unitOfWork.Commit();

_unitOfWork.CommitTransaction(transaction);

return errors;
}

Expand Down Expand Up @@ -332,6 +336,8 @@ public async Task<Dictionary<string, List<string>>> ApproveAccessRequest(AccessR

await _userRepo.ApproveAccessRequest(dto, role);

using var transaction = _unitOfWork.BeginTransaction();

_unitOfWork.Commit();

if (user.EmailAddressDsc!.IsEmpty())
Expand Down Expand Up @@ -374,6 +380,8 @@ public async Task<Dictionary<string, List<string>>> ApproveAccessRequest(AccessR

_unitOfWork.Commit();

_unitOfWork.CommitTransaction(transaction);

return errors;
}

Expand Down

0 comments on commit 5521009

Please sign in to comment.