diff --git a/api/src/main/java/ca/bc/gov/educ/api/gradstudent/messaging/jetstream/FetchGradStudentRecordSubscriber.java b/api/src/main/java/ca/bc/gov/educ/api/gradstudent/messaging/jetstream/FetchGradStudentRecordSubscriber.java index 3d47f72a..ab7bfdde 100644 --- a/api/src/main/java/ca/bc/gov/educ/api/gradstudent/messaging/jetstream/FetchGradStudentRecordSubscriber.java +++ b/api/src/main/java/ca/bc/gov/educ/api/gradstudent/messaging/jetstream/FetchGradStudentRecordSubscriber.java @@ -53,7 +53,7 @@ public void onMessage(Message message) { Event event = JsonUtil.getJsonObjectFromString(Event.class, eventString); log.info("received GET_STUDENT event :: {}", event.getSagaId()); log.trace(PAYLOAD_LOG, event.getEventPayload()); - UUID studentId = JsonUtil.getJsonObjectFromString(UUID.class, event.getEventPayload()); + UUID studentId = UUID.fromString(event.getEventPayload()); GradStudentRecord studentRecord = gradStudentService.getGraduationStudentRecord(studentId); response = getResponse(studentRecord); log.info(RESPONDING_BACK_TO_NATS_ON_CHANNEL, message.getReplyTo() != null ? message.getReplyTo() : event.getReplyTo());