디버깅용 print 추가
This commit is contained in:
parent
eb552f01f0
commit
6c9d57b18a
|
@ -37,16 +37,20 @@ 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(
|
println(
|
||||||
NewRoulette(
|
repository.save(
|
||||||
id = idGenerator.generateId(SEQUENCE_NAME),
|
NewRoulette(
|
||||||
creatorId = creatorId,
|
id = idGenerator.generateId(SEQUENCE_NAME),
|
||||||
can = roulette.can,
|
creatorId = creatorId,
|
||||||
isActive = false,
|
can = roulette.can,
|
||||||
items = roulette.items
|
isActive = false,
|
||||||
|
items = roulette.items
|
||||||
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue