fix(worklist): include patientId in assigned-leads query

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.
This commit is contained in:
2026-04-15 18:55:08 +05:30
parent 60d2329dd8
commit d459d6469a

View File

@@ -101,6 +101,7 @@ export class WorklistService {
assignedAgent campaignId assignedAgent campaignId
contactAttempts spamScore isSpam contactAttempts spamScore isSpam
aiSummary aiSuggestedAction aiSummary aiSuggestedAction
patientId
} } pageInfo { hasNextPage endCursor } } }`, } } pageInfo { hasNextPage endCursor } } }`,
'leads', 'leads',
authHeader, authHeader,