Skip to content

Commit

Permalink
Hotfix: 유저 정보 조회 시 역할 포함하여 리턴 + 다음 기수 진행 중복 요청 막기
Browse files Browse the repository at this point in the history
KoungQ committed Jul 28, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent bf7d963 commit d34f7d6
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/main/java/leets/weeth/domain/user/dto/UserDTO.java
Original file line number Diff line number Diff line change
@@ -41,7 +41,8 @@ public record Response(
String tel,
String department,
List<Integer> cardinals,
Position position
Position position,
Role role
) {}

public record AdminResponse (
Original file line number Diff line number Diff line change
@@ -50,7 +50,8 @@ public void applyOB(Long userId, Integer cardinal) {
User user = userRepository.findById(userId)
.orElseThrow(UserNotFoundException::new);

user.applyOB(cardinal);
if(!user.getCardinals().contains(cardinal))
user.applyOB(cardinal);
}

public Map<Integer, List<UserDTO.Response>> findAll() {

0 comments on commit d34f7d6

Please sign in to comment.