diff --git a/api/src/main/java/ca/bc/gov/educ/api/edx/service/v1/MoveSchoolOrchestratorService.java b/api/src/main/java/ca/bc/gov/educ/api/edx/service/v1/MoveSchoolOrchestratorService.java index f66a5b99..9093585b 100644 --- a/api/src/main/java/ca/bc/gov/educ/api/edx/service/v1/MoveSchoolOrchestratorService.java +++ b/api/src/main/java/ca/bc/gov/educ/api/edx/service/v1/MoveSchoolOrchestratorService.java @@ -52,6 +52,7 @@ public void copyUsersToNewSchool(MoveSchoolData moveSchoolData) { newEdxUserSchoolEntity.setUpdateDate(LocalDateTime.now()); newEdxUserSchoolEntity.setUpdateUser(moveSchoolData.getCreateUser()); newEdxUserSchoolEntity.setCreateDate(LocalDateTime.now()); + newEdxUserSchoolEntity.setExpiryDate(edxUserSchoolEntity.getExpiryDate()); Set edxUserSchoolRoleEntitySet = new HashSet<>();