fix: appointmentStatus→status, missed call visibility, webhook callbackstatus, KB logging

- Renamed appointmentStatus to status in search + call-assist queries
- Missed calls worklist: removed agentName filter (shared FIFO queue)
- Webhook sets callbackstatus: PENDING_CALLBACK on missed calls
- AI chat: added KB content logging for debugging

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-23 14:42:38 +05:30
parent 0b98d490f0
commit 4b5edc4e55
5 changed files with 16 additions and 5 deletions

View File

@@ -52,7 +52,7 @@ export class CallAssistService {
const apptResult = await this.platform.queryWithAuth<any>(
`{ appointments(first: 10, orderBy: [{ scheduledAt: DescNullsLast }]) { edges { node {
id scheduledAt appointmentStatus doctorName department reasonForVisit patientId
id scheduledAt status doctorName department reasonForVisit patientId
} } } }`,
undefined, authHeader,
);
@@ -63,7 +63,7 @@ export class CallAssistService {
parts.push('\nPAST APPOINTMENTS:');
for (const a of appts) {
const date = a.scheduledAt ? new Date(a.scheduledAt).toLocaleDateString('en-IN') : '?';
parts.push(`- ${date}: ${a.doctorName ?? '?'} (${a.department ?? '?'}) — ${a.appointmentStatus}`);
parts.push(`- ${date}: ${a.doctorName ?? '?'} (${a.department ?? '?'}) — ${a.status}`);
}
}
} else if (callerPhone) {