deleting accepted from application

This commit is contained in:
José Salazar
2026-02-10 11:59:07 -05:00
parent eee8b2e6ec
commit 06882f91df
3 changed files with 6 additions and 1906 deletions

View File

@@ -275,7 +275,7 @@ query getApplicationsByStaffId(
applications(
where: {
staffId: { eq: $staffId }
status: { in: [ACCEPTED, CONFIRMED, CHECKED_IN, CHECKED_OUT, LATE] }
status: { in: [ CONFIRMED, CHECKED_IN, CHECKED_OUT, LATE] }
shift: {
date: { ge: $dayStart, le: $dayEnd }
}
@@ -516,7 +516,7 @@ query getApplicationByStaffShiftAndRole(
}
#getting staffs of an shiftrole ACCEPTED for orders view client
#getting staffs of an shiftrole CONFIRMED for orders view client
query listAcceptedApplicationsByShiftRoleKey(
$shiftId: UUID!
$roleId: UUID!
@@ -527,7 +527,7 @@ query listAcceptedApplicationsByShiftRoleKey(
where: {
shiftId: { eq: $shiftId }
roleId: { eq: $roleId }
status: { eq: ACCEPTED }
status: { eq: CONFIRMED }
}
offset: $offset
limit: $limit
@@ -540,7 +540,7 @@ query listAcceptedApplicationsByShiftRoleKey(
}
}
#getting staffs of an shiftrole ACCEPTED for orders of the day view client
#getting staffs of an shiftrole status for orders of the day view client
query listAcceptedApplicationsByBusinessForDay(
$businessId: UUID!
$dayStart: Timestamp!
@@ -550,8 +550,7 @@ query listAcceptedApplicationsByBusinessForDay(
) @auth(level: USER) {
applications(
where: {
#status: { eq: ACCEPTED }
status: { in: [ACCEPTED, CONFIRMED, CHECKED_IN, CHECKED_OUT, LATE] }
status: { in: [ CONFIRMED, CHECKED_IN, CHECKED_OUT, LATE] }
shift: {
date: { ge: $dayStart, le: $dayEnd }
order: { businessId: { eq: $businessId } }
@@ -581,11 +580,10 @@ query listStaffsApplicationsByBusinessForDay(
) @auth(level: USER) {
applications(
where: {
status: {in: [ACCEPTED, CONFIRMED, CHECKED_IN, CHECKED_OUT, LATE]}
status: {in: [ CONFIRMED, CHECKED_IN, CHECKED_OUT, LATE]}
shift: {
date: { ge: $dayStart, le: $dayEnd }
order: { businessId: { eq: $businessId } }
#status: { eq: ACCEPTED }
}
}
offset: $offset

View File

@@ -1,6 +1,5 @@
enum ApplicationStatus {
PENDING
ACCEPTED
REJECTED
CONFIRMED
CHECKED_IN

File diff suppressed because it is too large Load Diff