diff --git a/api/src/main/java/ca/bc/gov/educ/api/pen/services/service/events/EventHandlerService.java b/api/src/main/java/ca/bc/gov/educ/api/pen/services/service/events/EventHandlerService.java index bedbd06..a3705ea 100644 --- a/api/src/main/java/ca/bc/gov/educ/api/pen/services/service/events/EventHandlerService.java +++ b/api/src/main/java/ca/bc/gov/educ/api/pen/services/service/events/EventHandlerService.java @@ -264,7 +264,7 @@ public byte[] handleGetMergeInDateRangeEvent(@NonNull final Event event) throws } } - final List mergeEntities = this.getStudentMergeService().findStudentMerges(createDateStart, createDateEnd, StudentMergeDirectionCodes.FROM.getCode()); + final List mergeEntities = this.getStudentMergeService().findStudentMerges(String.valueOf(createDateStart), String.valueOf(createDateEnd), StudentMergeDirectionCodes.TO.getCode()); final Event newEvent = Event.builder() .sagaId(event.getSagaId())