Skip to content

Commit

Permalink
Fix: track default 값 지정
Browse files Browse the repository at this point in the history
  • Loading branch information
kwonssshyeon committed Sep 25, 2024
1 parent fc07a37 commit d9e4af3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.gdsc_knu.official_homepage.entity.Member;
import com.gdsc_knu.official_homepage.entity.enumeration.Role;
import com.gdsc_knu.official_homepage.entity.enumeration.Track;
import lombok.Getter;

import java.time.LocalDateTime;
Expand All @@ -23,6 +24,7 @@ public Member toMember(){
.profileUrl(picture)
.name(name)
.role(Role.ROLE_TEMP)
.track(Track.UNDEFINED)
.build();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ public static MemberInfo from(Member member) {
return MemberInfo.builder()
.id(member.getId())
.name(member.getName())
.track(member.getTrack() != null
? member.getTrack().name()
: "undefined")
.track(member.getTrack().name())
.build();
}
}
Expand Down

0 comments on commit d9e4af3

Please sign in to comment.