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