test #342

Merged
klaus merged 4 commits from test into main 2025-09-16 06:11:32 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit adcaa0a5fd - Show all commits

View File

@ -148,7 +148,7 @@ class AdminOriginalWorkService(
val character = chatCharacterRepository.findById(characterId)
.orElseThrow { SodaException("해당 캐릭터를 찾을 수 없습니다") }
if (characterId == 0L) {
if (originalWorkId == 0L) {
character.originalWork = null
} else {
val ow = originalWorkRepository.findByIdAndIsDeletedFalse(originalWorkId)