test #134

Merged
klaus merged 19 commits from test into main 2024-02-24 20:35:58 +00:00
Showing only changes of commit 6c9d57b18a - Show all commits

View File

@@ -37,9 +37,12 @@ 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),
@@ -49,6 +52,7 @@ class NewRouletteService(
items = roulette.items
)
)
)
rouletteList = repository.findByCreatorId(creatorId)
}