adding isProfileVisible for the staff

This commit is contained in:
José Salazar
2026-02-16 14:52:17 -05:00
parent b3b84b6293
commit 5f96d5087b
4 changed files with 667 additions and 713 deletions

View File

@@ -551,6 +551,7 @@ query listAcceptedApplicationsByBusinessForDay(
applications(
where: {
status: { in: [ CONFIRMED, CHECKED_IN, CHECKED_OUT, LATE] }
staff: { isProfileVisible: { eq: true } }
shift: {
date: { ge: $dayStart, le: $dayEnd }
order: { businessId: { eq: $businessId } }
@@ -581,6 +582,7 @@ query listStaffsApplicationsByBusinessForDay(
applications(
where: {
status: {in: [ CONFIRMED, CHECKED_IN, CHECKED_OUT, LATE]}
staff: { isProfileVisible: { eq: true } }
shift: {
date: { ge: $dayStart, le: $dayEnd }
order: { businessId: { eq: $businessId } }