Skip to content

Commit

Permalink
Fix: #134 PageImpl 1개 요소 있을 때의 버그
Browse files Browse the repository at this point in the history
  • Loading branch information
BYEONGRYEOL committed Aug 22, 2024
1 parent e1ffd9c commit 9306704
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
Expand Down Expand Up @@ -232,7 +233,7 @@ public Page<UserFindByAdminResponseDto> getUserInfoByEmail(String email) {
.createdAt(foundUser.getCreatedAt())
.lastLoginDate(foundUser.getLastLoginDate())
.build();
return new PageImpl<>(List.of(responseDto));
return new PageImpl<>(List.of(responseDto), PageRequest.of(0, 1), 1);
}

public SignUpResponseDTO signUp(Long userId, SignUpRequestDTO signUpRequestDTO) {
Expand Down

0 comments on commit 9306704

Please sign in to comment.