번역 이벤트 커밋 후 처리 분기
This commit is contained in:
@@ -183,7 +183,8 @@ class AudioContentService(
|
||||
applicationEventPublisher.publishEvent(
|
||||
LanguageTranslationEvent(
|
||||
id = request.contentId,
|
||||
targetType = LanguageTranslationTargetType.CONTENT
|
||||
targetType = LanguageTranslationTargetType.CONTENT,
|
||||
waitTransactionCommit = true
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user