From 8534e720d7e941d46f23e3a78c11d8ddf10acb97 Mon Sep 17 00:00:00 2001 From: SodhiA1 <38086281+SodhiA1@users.noreply.github.com> Date: Tue, 17 Oct 2023 17:08:12 -0700 Subject: [PATCH] Update MoveSchoolOrchestratorService.java --- .../educ/api/edx/service/v1/MoveSchoolOrchestratorService.java | 1 + 1 file changed, 1 insertion(+) 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<>();