번역 이벤트 커밋 후 처리 분기

This commit is contained in:
2026-01-07 18:45:53 +09:00
parent d07c1cc6db
commit 68b5ed7cc2
8 changed files with 39 additions and 21 deletions

View File

@@ -183,7 +183,8 @@ class AudioContentService(
applicationEventPublisher.publishEvent(
LanguageTranslationEvent(
id = request.contentId,
targetType = LanguageTranslationTargetType.CONTENT
targetType = LanguageTranslationTargetType.CONTENT,
waitTransactionCommit = true
)
)
}

View File

@@ -75,7 +75,8 @@ class CategoryService(
applicationEventPublisher.publishEvent(
LanguageTranslationEvent(
id = request.categoryId,
targetType = LanguageTranslationTargetType.CREATOR_CONTENT_CATEGORY
targetType = LanguageTranslationTargetType.CREATOR_CONTENT_CATEGORY,
waitTransactionCommit = true
)
)
}
@@ -158,7 +159,7 @@ class CategoryService(
val sourceLang = entity.languageCode
if (!sourceLang.isNullOrBlank() && sourceLang != locale) {
val existing = translations[item.categoryId]
if (existing != null && !existing.category.isNullOrBlank()) {
if (existing != null && existing.category.isNotBlank()) {
result.add(GetCategoryListResponse(categoryId = item.categoryId, category = existing.category))
continue
}