diff --git a/api/src/main/java/org/openmrs/module/appointments/events/eventListener/AppointmentSMSEventListener.java b/api/src/main/java/org/openmrs/module/appointments/events/eventListener/AppointmentSMSEventListener.java index 9c534144..02e560f0 100644 --- a/api/src/main/java/org/openmrs/module/appointments/events/eventListener/AppointmentSMSEventListener.java +++ b/api/src/main/java/org/openmrs/module/appointments/events/eventListener/AppointmentSMSEventListener.java @@ -77,7 +77,7 @@ private void handleRecurringAppointmentCreatedEvent(Appointment appointment) { MessageBuilderService messageBuilderService = Context.getRegisteredComponent("messageBuilderService", MessageBuilderService.class); CommunicationService communicationService = Context.getRegisteredComponent("communicationService", CommunicationService.class); List providersName = appointmentArgumentsMapper.getProvidersNameInString(appointment); - String message = messageBuilderService.getAppointmentBookingMessage(appointmentArgumentsMapper.createArgumentsMapForRecurringAppointmentBooking(appointment), providersName); + String message = messageBuilderService.getRecurringAppointmentBookingMessage(appointmentArgumentsMapper.createArgumentsMapForRecurringAppointmentBooking(appointment), providersName); communicationService.sendSMS(phoneNumber, message); } private boolean shouldSendEmailForBookingAppointment() {