Revert "AI Summary not showing appointments fix."

This reverts commit 55b8680923.
This commit is contained in:
Kartik Datrika
2026-04-16 14:54:17 +05:30
parent 55b8680923
commit 7d8424b446
3 changed files with 56 additions and 60 deletions

View File

@@ -58,7 +58,7 @@ export class CallLookupController {
// Fetch patient context if patientId exists
let patientData = null;
let upcomingAppointments: any[] = [];
if (lead?.patientId) {
if (lead.patientId) {
try {
patientData = await this.platform.getPatientWithToken(
lead.patientId,

View File

@@ -97,7 +97,6 @@ export class PlatformGraphqlService {
assignedAgent campaignId adId
contactAttempts spamScore isSpam
aiSummary aiSuggestedAction
patientId
}
}`,
{ id },
@@ -163,7 +162,6 @@ export class PlatformGraphqlService {
assignedAgent campaignId adId
contactAttempts spamScore isSpam
aiSummary aiSuggestedAction
patientId
}
}
}

View File

@@ -15,7 +15,6 @@ export type LeadNode = {
isSpam: boolean | null;
aiSummary: string | null;
aiSuggestedAction: string | null;
patientId: string | null;
};
export type LeadActivityNode = {
@@ -70,5 +69,4 @@ export type UpdateLeadInput = {
aiSummary?: string;
aiSuggestedAction?: string;
contactAttempts?: number;
patientId?: string;
};