Skip to content

Commit

Permalink
chore: 페이지 사이즈 조정
Browse files Browse the repository at this point in the history
  • Loading branch information
Sion99 committed Jun 4, 2024
1 parent de36297 commit 5a26f0c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/savemyreceipt/smr/service/GroupService.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class GroupService {
@Transactional(readOnly = true)
public GroupListResponseDto getGroups(String email, int page) {
Member member = memberRepository.getMemberByEmail(email);
Pageable pageable = PageRequest.of(page, 10);
Pageable pageable = PageRequest.of(page, 12);

Page<GroupMember> groupMembers = groupMemberRepository.findByMemberId(member.getId(), pageable);

Expand All @@ -60,7 +60,7 @@ public GroupListResponseDto getGroups(String email, int page) {

@Transactional(readOnly = true)
public GroupListResponseDto searchGroup(String keyword, int page) {
Pageable pageable = PageRequest.of(page, 10);
Pageable pageable = PageRequest.of(page, 12);
Page<Group> groups = groupRepository.findByNameContaining(keyword, pageable);

Page<GroupResponseDto> groupResponseDtos = groups.map(group -> GroupResponseDto.builder()
Expand Down Expand Up @@ -138,7 +138,7 @@ private void join(Member member, Group group, Role role) {

@Transactional(readOnly = true)
public MemberListResponseDto getGroupMembers(Long groupId, int page) {
Pageable pageable = PageRequest.of(page, 10);
Pageable pageable = PageRequest.of(page, 20);
Page<GroupMember> groupMembers = groupMemberRepository.findByGroupId(groupId, pageable);

Page<MemberResponseDto> memberResponseDtos = groupMembers.map(
Expand Down

0 comments on commit 5a26f0c

Please sign in to comment.