디버깅용 print 제거
This commit is contained in:
parent
3e89025fd9
commit
4fb97a7c95
|
@ -37,31 +37,25 @@ 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) {
|
||||
println(
|
||||
repository.save(
|
||||
NewRoulette(
|
||||
id = idGenerator.generateId(SEQUENCE_NAME),
|
||||
creatorId = creatorId,
|
||||
can = roulette.can,
|
||||
isActive = false,
|
||||
items = roulette.items
|
||||
)
|
||||
repository.save(
|
||||
NewRoulette(
|
||||
id = idGenerator.generateId(SEQUENCE_NAME),
|
||||
creatorId = creatorId,
|
||||
can = roulette.can,
|
||||
isActive = false,
|
||||
items = roulette.items
|
||||
)
|
||||
)
|
||||
|
||||
rouletteList = repository.findByCreatorId(creatorId)
|
||||
oldRepository.deleteById(roulette.creatorId)
|
||||
}
|
||||
}
|
||||
|
||||
rouletteList.sortedBy { it.id }
|
||||
|
||||
println(rouletteList)
|
||||
|
||||
return rouletteList.asSequence()
|
||||
.map {
|
||||
GetNewRouletteResponse(
|
||||
|
|
Loading…
Reference in New Issue