디버깅용 print 추가
This commit is contained in:
		| @@ -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 | ||||
|                         ) | ||||
|                     ) | ||||
|                 ) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user