Skip to content

Commit c1acd7d

Browse files
authored
Merge pull request GoodSpace-Kr#153 from kjoon418/main
[fix] 티밍룸 API 로직 오류 해결
2 parents ead0d72 + 39f9cac commit c1acd7d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/kotlin/goodspace/teaming/chat/service/RoomServiceImpl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,6 @@ class RoomServiceImpl(
205205
}
206206

207207
private fun RoomUpdateRequestDto.validate() {
208-
require(title.trim().isEmpty()) { ILLEGAL_TITLE }
208+
require(title.trim().isNotEmpty()) { ILLEGAL_TITLE }
209209
}
210210
}

src/main/kotlin/goodspace/teaming/global/entity/room/Room.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class Room(
5757
fun currentMemberCount() = userRooms.size
5858

5959
fun addUserRoom(userRoom: UserRoom) {
60-
require(userRooms.size <= memberCount) { throw IllegalStateException("방의 최대 인원 수를 초과했습니다.") }
60+
require(userRooms.size < memberCount) { throw IllegalStateException("방의 최대 인원 수를 초과했습니다.") }
6161

6262
userRooms.add(userRoom)
6363
}

0 commit comments

Comments
 (0)