From d459d6469aca855b60530ee978a7a4b60c80fc43 Mon Sep 17 00:00:00 2001 From: saridsa2 Date: Wed, 15 Apr 2026 18:55:08 +0530 Subject: [PATCH] fix(worklist): include patientId in assigned-leads query MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Scenario: unknown caller books appointment (creates Patient), calls again, caller resolver links Lead↔Patient. On the second call the frontend found the lead in the worklist cache but it lacked patientId — so Book Appt pills couldn't find the prior appointment. The resolver had the right patientId; the worklist didn't. Adding patientId to the GraphQL selection so the cached row carries it end-to-end. --- src/worklist/worklist.service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/worklist/worklist.service.ts b/src/worklist/worklist.service.ts index 9a15fa5..e5a1663 100644 --- a/src/worklist/worklist.service.ts +++ b/src/worklist/worklist.service.ts @@ -101,6 +101,7 @@ export class WorklistService { assignedAgent campaignId contactAttempts spamScore isSpam aiSummary aiSuggestedAction + patientId } } pageInfo { hasNextPage endCursor } } }`, 'leads', authHeader,