From 47307523a7d3273668bd5ec8bbfd7cc33bdc9ca2 Mon Sep 17 00:00:00 2001 From: hysong4u Date: Wed, 28 Feb 2024 19:47:51 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20=ED=86=A0=EB=84=88=EB=A8=BC=ED=8A=B8=20?= =?UTF-8?q?=EC=84=A0=EB=AC=BC=20=ED=95=9C=20=EA=B0=9C=EC=9D=BC=20=EB=95=8C?= =?UTF-8?q?=20=EB=B6=84=EA=B8=B0=EB=AC=B8=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/sopt/sweet/domain/gift/controller/GiftController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/sopt/sweet/domain/gift/controller/GiftController.java b/src/main/java/org/sopt/sweet/domain/gift/controller/GiftController.java index 48d4fa8..e614dd1 100644 --- a/src/main/java/org/sopt/sweet/domain/gift/controller/GiftController.java +++ b/src/main/java/org/sopt/sweet/domain/gift/controller/GiftController.java @@ -65,7 +65,7 @@ public ResponseEntity> getTournamentGiftList(@UserId Long use Boolean isOwner = memberService.isOwner(userId, roomId); List tournamentGiftList = giftService.getTournamentGiftList(userId, roomId); - if (tournamentGiftList.isEmpty()) { + if (tournamentGiftList.isEmpty() || tournamentGiftList.size() == 1) { return SuccessResponse.ok(new OwnerResponseDto(isOwner)); } return SuccessResponse.ok(tournamentGiftList);