From c0c035f94becb678fdf84305a76b8c43561a4e7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Salazar?= <73718835+joshrs23@users.noreply.github.com> Date: Thu, 26 Feb 2026 10:07:42 -0500 Subject: [PATCH] deleting duplicated benefit query --- .../connector/benefitsData/queries.gql | 40 ------------------- 1 file changed, 40 deletions(-) diff --git a/backend/dataconnect/connector/benefitsData/queries.gql b/backend/dataconnect/connector/benefitsData/queries.gql index c856fcbf..0a4eadb6 100644 --- a/backend/dataconnect/connector/benefitsData/queries.gql +++ b/backend/dataconnect/connector/benefitsData/queries.gql @@ -1,38 +1,4 @@ -# ---------------------------------------------------------- -# GET WORKER BENEFIT BALANCES (M4) -# Returns all active benefit plans with balance data for a given worker. -# Supports: Sick Leave (40h), Holidays (24h), Vacation (40h) -# Extensible: any future VendorBenefitPlan will appear automatically. -# -# Fields: -# vendorBenefitPlan.title → benefit type name -# vendorBenefitPlan.total → total entitlement (hours) -# current → used hours -# remaining = total - current → computed client-side -# ---------------------------------------------------------- -query getWorkerBenefitBalances( - $staffId: UUID! -) @auth(level: USER) { - benefitsDatas( - where: { - staffId: { eq: $staffId } - } - ) { - vendorBenefitPlanId - current - - vendorBenefitPlan { - id - title - description - requestLabel - total - isActive - } - } -} - # ---------------------------------------------------------- # LIST ALL (admin/debug) # ---------------------------------------------------------- @@ -109,12 +75,6 @@ query listBenefitsDataByStaffId( id vendorBenefitPlanId current - staffId - - staff { - id - fullName - } vendorBenefitPlan { id