디버깅용 print 추가
This commit is contained in:
parent
4fb97a7c95
commit
7328283b6b
|
@ -37,8 +37,10 @@ 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) {
|
||||||
repository.save(
|
repository.save(
|
||||||
NewRoulette(
|
NewRoulette(
|
||||||
|
@ -55,6 +57,8 @@ class NewRouletteService(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
rouletteList.sortedBy { it.id }
|
rouletteList.sortedBy { it.id }
|
||||||
|
println(rouletteList)
|
||||||
|
println(oldRepository.findByIdOrNull(creatorId))
|
||||||
|
|
||||||
return rouletteList.asSequence()
|
return rouletteList.asSequence()
|
||||||
.map {
|
.map {
|
||||||
|
|
Loading…
Reference in New Issue