getting last getApplicationsbyStaffId

This commit is contained in:
José Salazar
2026-02-02 04:55:37 +09:00
parent 4830d72d48
commit 5a2721eebb
5 changed files with 20059 additions and 20002 deletions

View File

@@ -269,9 +269,18 @@ query getApplicationsByStaffId(
$staffId: UUID!
$offset: Int
$limit: Int
$dayStart: Timestamp
$dayEnd: Timestamp
) @auth(level: USER) {
applications(
where: { staffId: { eq: $staffId } }
where: {
staffId: { eq: $staffId }
status: { in: [ACCEPTED, CONFIRMED, CHECKED_IN, CHECKED_OUT, LATE] }
shift: {
date: { ge: $dayStart, le: $dayEnd }
}
}
offset: $offset
limit: $limit
) {
@@ -310,6 +319,7 @@ query getApplicationsByStaffId(
businessName
email
contactName
companyLogoUrl
}
vendor {
id