diff --git a/src/messaging/messaging.service.ts b/src/messaging/messaging.service.ts index 8101e82..9a92a67 100644 --- a/src/messaging/messaging.service.ts +++ b/src/messaging/messaging.service.ts @@ -364,7 +364,7 @@ ${callerContext ? `\n${callerContext}` : ''}`; const result = await platform.query( `mutation($data: AppointmentCreateInput!) { createAppointment(data: $data) { id } }`, - { data: { name: `WhatsApp Booking — ${patientName} (${department})`, scheduledAt, appointmentStatus: 'SCHEDULED', doctorName, department, reasonForVisit: reason } }, + { data: { name: `WhatsApp Booking — ${patientName} (${department})`, scheduledAt, status: 'SCHEDULED', doctorName, department, reasonForVisit: reason } }, ); const id = result?.createAppointment?.id; if (id) {