Skip to content

Commit 3b72b2f

Browse files
committed
hotfix : dto 필드 추가 및 batch-size 설정
1 parent 17d6f56 commit 3b72b2f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/main/java/ita/tinybite/domain/chat/dto/res/OneToOneChatRoomDetailResDto.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
@JsonInclude(JsonInclude.Include.NON_NULL)
1515
public record OneToOneChatRoomDetailResDto(
1616
Long chatRoomId,
17+
Long partyId,
18+
Long participantId,
1719
Long groupChatRoomId,
1820
ParticipantType participantType, // 호스트인지, 참여자인지 구분
1921
ParticipantStatus participantStatus, // 파티 승인 현황 (호스트, 참여자 입장 구분 O)
@@ -32,6 +34,8 @@ public static OneToOneChatRoomDetailResDto of(Party party, PartyParticipant part
3234

3335
OneToOneChatRoomDetailResDtoBuilder resDtoBuilder = OneToOneChatRoomDetailResDto.builder()
3436
.chatRoomId(partyParticipant.getOneToOneChatRoom().getId())
37+
.partyId(party.getId())
38+
.participantId(partyParticipant.getId())
3539
.participantType(type)
3640
.participantStatus(ParticipantStatus.PENDING)
3741
.targetName(targetUser.getNickname())

src/main/resources/application-local.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ spring:
1616
ddl-auto: update
1717
properties:
1818
hibernate:
19+
default_batch_fetch_size: 50
1920
format_sql: true
2021
dialect: org.hibernate.dialect.MySQLDialect
2122

0 commit comments

Comments
 (0)