관리자 태그 큐레이션 등록
- 동일한 태그가 등록되지 않도록 validation 추가
This commit is contained in:
		| @@ -75,7 +75,10 @@ class AdminHashTagCurationQueryRepositoryImpl( | ||||
|         return queryFactory | ||||
|             .select(contentHashTagCuration.id) | ||||
|             .from(contentHashTagCuration) | ||||
|             .where(contentHashTagCuration.tag.eq(tag)) | ||||
|             .where( | ||||
|                 contentHashTagCuration.tag.eq(tag), | ||||
|                 contentHashTagCuration.isActive.isTrue | ||||
|             ) | ||||
|             .fetch().isNotEmpty() | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -90,6 +90,7 @@ class AdminHashTagCurationService( | ||||
|                 ) ?: ContentHashTagCurationItem() | ||||
|                 item.curation = curation | ||||
|                 item.content = audioContent | ||||
|                 item.isActive = true | ||||
|                 itemRepository.save(item) | ||||
|             } | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user