Skip to content

Commit

Permalink
fix : 삭제된 userGender null 로직 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
duehee committed Apr 9, 2024
1 parent 41f8c86 commit 0857028
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@ public record StudentUpdateResponse(

public static StudentUpdateResponse from(Student student) {
User user = student.getUser();
Integer userGender = user.getGender() != null ? user.getGender().ordinal() : null;
return new StudentUpdateResponse(
student.getAnonymousNickname(),
user.getEmail(),
user.getGender().ordinal(),
userGender,
student.getDepartment(),
user.getName(),
user.getNickname(),
Expand Down

0 comments on commit 0857028

Please sign in to comment.