디버깅용 print 제거
This commit is contained in:
parent
3e89025fd9
commit
4fb97a7c95
|
@ -37,31 +37,25 @@ class NewRouletteService(
|
||||||
if (creatorId != memberId) throw SodaException("잘못된 요청입니다.")
|
if (creatorId != memberId) throw SodaException("잘못된 요청입니다.")
|
||||||
|
|
||||||
var rouletteList = repository.findByCreatorId(creatorId)
|
var rouletteList = repository.findByCreatorId(creatorId)
|
||||||
println(rouletteList)
|
|
||||||
if (rouletteList.isEmpty()) {
|
if (rouletteList.isEmpty()) {
|
||||||
val roulette = oldRepository.findByIdOrNull(creatorId)
|
val roulette = oldRepository.findByIdOrNull(creatorId)
|
||||||
println(roulette)
|
|
||||||
if (roulette != null) {
|
if (roulette != null) {
|
||||||
println(
|
repository.save(
|
||||||
repository.save(
|
NewRoulette(
|
||||||
NewRoulette(
|
id = idGenerator.generateId(SEQUENCE_NAME),
|
||||||
id = idGenerator.generateId(SEQUENCE_NAME),
|
creatorId = creatorId,
|
||||||
creatorId = creatorId,
|
can = roulette.can,
|
||||||
can = roulette.can,
|
isActive = false,
|
||||||
isActive = false,
|
items = roulette.items
|
||||||
items = roulette.items
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
rouletteList = repository.findByCreatorId(creatorId)
|
rouletteList = repository.findByCreatorId(creatorId)
|
||||||
|
oldRepository.deleteById(roulette.creatorId)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
rouletteList.sortedBy { it.id }
|
rouletteList.sortedBy { it.id }
|
||||||
|
|
||||||
println(rouletteList)
|
|
||||||
|
|
||||||
return rouletteList.asSequence()
|
return rouletteList.asSequence()
|
||||||
.map {
|
.map {
|
||||||
GetNewRouletteResponse(
|
GetNewRouletteResponse(
|
||||||
|
|
Loading…
Reference in New Issue