fix: [현황판] 결재 카드 조회에 approvalOnly 스코프 추가
- ApprovalStep 쿼리에 approvalOnly() 스코프 적용 - 결재 유형만 필터링되도록 보정 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -252,7 +252,8 @@ private function getApprovalStatus(int $tenantId, int $userId): array
|
||||
->where('status', 'pending');
|
||||
})
|
||||
->where('approver_id', $userId)
|
||||
->where('status', 'pending');
|
||||
->where('status', 'pending')
|
||||
->approvalOnly();
|
||||
|
||||
$count = (clone $query)->count();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user