diff --git a/src/main/java/org/sopt/sweet/domain/room/service/RoomService.java b/src/main/java/org/sopt/sweet/domain/room/service/RoomService.java index 126f2cb..f86af4d 100644 --- a/src/main/java/org/sopt/sweet/domain/room/service/RoomService.java +++ b/src/main/java/org/sopt/sweet/domain/room/service/RoomService.java @@ -52,7 +52,7 @@ public CreateRoomResponseDto createNewRoom(Long memberId, CreateRoomRequestDto c String invitationCode = generateUniqueInvitationCode(); Room room = Room.builder() .gifteeName(createRoomRequestDto.gifteeName()) - .imageUrl(DEFAULT_IMAGE_URL) + .imageUrl((createRoomRequestDto.imageUrl() != null && !createRoomRequestDto.imageUrl().trim().isEmpty()) ? createRoomRequestDto.imageUrl() : DEFAULT_IMAGE_URL) .deliveryDate(createRoomRequestDto.deliveryDate()) .tournamentStartDate(createRoomRequestDto.tournamentStartDate()) .tournamentDuration(createRoomRequestDto.tournamentDuration())