Skip to content

Commit

Permalink
[fix] #103 선물방 생성 대표 이미지로 통일
Browse files Browse the repository at this point in the history
  • Loading branch information
ziiyouth committed Jan 19, 2024
1 parent d54d164 commit 7cf94b8
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 7cf94b8

Please sign in to comment.