Skip to content

Commit

Permalink
remove graduated from dto
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmcdermid authored and cditcher committed Dec 11, 2024
1 parent d0dabca commit b7713b5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ private String getResponse(GradStudentRecord studentRecord) throws JsonProcessin
.programCompletionDate(studentRecord.getProgramCompletionDate() != null ? EducGradStudentApiUtils.formatDate(studentRecord.getProgramCompletionDate()) : null)
.schoolOfRecord(studentRecord.getSchoolOfRecord())
.studentStatusCode(studentRecord.getStudentStatus())
.graduated(studentRecord.getGraduated().toString())
.graduated(gradStudentService.parseGraduationStatus(studentRecord.getStudentProjectedGradData()).toString())
.build();
return JsonUtil.getJsonStringFromObject(gradStudentRecordPayload);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,5 @@ public class GradStudentRecord {
private String schoolOfRecord;
private String studentStatus;
private String studentProjectedGradData;
private Boolean graduated;

}
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,6 @@ public List<UUID> getStudentIDsBySearchCriteriaOrAll(StudentSearchRequest search
public GradStudentRecord getGraduationStudentRecord(UUID studentID) {
GradStudentRecord response = graduationStatusRepository.findByStudentID(studentID, GradStudentRecord.class);
if (response != null) {
response.setGraduated(parseGraduationStatus(response.getStudentProjectedGradData()));
return response;
}
throw new EntityNotFoundException(String.format(STD_NOT_FOUND_MSG, studentID));
Expand Down

0 comments on commit b7713b5

Please sign in to comment.