From b60fb944ab334512e454ac79c88b81f8c5495f8f Mon Sep 17 00:00:00 2001 From: hysong4u Date: Sat, 17 Feb 2024 01:53:00 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20presigined=20url=20=EC=A0=81=EC=9A=A9?= =?UTF-8?q?=20=EA=B0=80=EB=8A=A5=ED=95=98=EA=B2=8C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/sopt/sweet/domain/room/service/RoomService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())