Skip to content

Commit

Permalink
Merge pull request #104 from SWEET-DEVELOPERS/feature/#103-room
Browse files Browse the repository at this point in the history
[fix] 선물방 생성 대표 이미지로 통일
  • Loading branch information
ziiyouth authored Jan 19, 2024
2 parents d54d164 + 7cf94b8 commit 746f5b6
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,9 @@ public CreateRoomResponseDto createNewRoom(Long memberId, CreateRoomRequestDto c
Member host = findMemberByIdOrThrow(memberId);
validateName(createRoomRequestDto.gifteeName());
String invitationCode = generateUniqueInvitationCode();
System.out.println("이미지Url " + createRoomRequestDto.imageUrl() +"/");
Room room = Room.builder()
.gifteeName(createRoomRequestDto.gifteeName())
.imageUrl((createRoomRequestDto.imageUrl() != null && !createRoomRequestDto.imageUrl().trim().isEmpty()) ? createRoomRequestDto.imageUrl() : DEFAULT_IMAGE_URL)
.imageUrl(DEFAULT_IMAGE_URL)
.deliveryDate(createRoomRequestDto.deliveryDate())
.tournamentStartDate(createRoomRequestDto.tournamentStartDate())
.tournamentDuration(createRoomRequestDto.tournamentDuration())
Expand Down

0 comments on commit 746f5b6

Please sign in to comment.