feat(access-request): code improvements

This commit is contained in:
carlosmonastyrski
2025-05-30 14:53:12 -03:00
parent 858ec2095e
commit 85fefb2a82
2 changed files with 6 additions and 4 deletions
@@ -392,7 +392,7 @@ export const accessApprovalRequestDALFactory = (db: TDbClient) => {
]
});
// an approval is pending if there is no reviewer rejections, no privilege ID is set and the number of approvals is less than the number of approvals required
// an approval is pending if there is no reviewer rejections, no privilege ID is set and the status is pending
const pendingApprovals = formattedRequests.filter(
(req) =>
!req.privilegeId &&