Skip to content

Commit

Permalink
fix: 토큰 생성 시 가장 최근의 기수로 생성되도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hocaron authored Mar 8, 2024
2 parents fb79ccf + efc308d commit 9fb1287
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public void changePassword(
}

private MemberGeneration getLatestMemberGeneration(Member member) {
return member.getMemberGenerations().stream().min(Comparator.comparing(
return member.getMemberGenerations().stream().max(Comparator.comparing(
memberGeneration -> memberGeneration.getGeneration().getNumber()
)).orElseThrow(GenerationIntegrityFailException::new);
}
Expand Down

0 comments on commit 9fb1287

Please sign in to comment.