From 6c9d57b18a3a59b5e6d203a1a3d4ade19e4e6e4a Mon Sep 17 00:00:00 2001 From: Klaus Date: Thu, 22 Feb 2024 16:11:06 +0900 Subject: [PATCH] =?UTF-8?q?=EB=94=94=EB=B2=84=EA=B9=85=EC=9A=A9=20print=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../live/roulette/NewRouletteService.kt | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/live/roulette/NewRouletteService.kt b/src/main/kotlin/kr/co/vividnext/sodalive/live/roulette/NewRouletteService.kt index 35d8a37..1a0bd72 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/live/roulette/NewRouletteService.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/live/roulette/NewRouletteService.kt @@ -37,16 +37,20 @@ class NewRouletteService( if (creatorId != memberId) throw SodaException("잘못된 요청입니다.") var rouletteList = repository.findByCreatorId(creatorId) + println(rouletteList) if (rouletteList.isEmpty()) { val roulette = oldRepository.findByIdOrNull(creatorId) + println(roulette) if (roulette != null) { - repository.save( - NewRoulette( - id = idGenerator.generateId(SEQUENCE_NAME), - creatorId = creatorId, - can = roulette.can, - isActive = false, - items = roulette.items + println( + repository.save( + NewRoulette( + id = idGenerator.generateId(SEQUENCE_NAME), + creatorId = creatorId, + can = roulette.can, + isActive = false, + items = roulette.items + ) ) )