콘텐츠 상세

- 활성화 되어 있는 태그만 가져오도록 수정
This commit is contained in:
Klaus 2024-06-07 18:01:57 +09:00
parent b5f37cb54b
commit ffc146df06
2 changed files with 3 additions and 0 deletions

View File

@ -543,6 +543,7 @@ class AudioContentService(
}
val tag = audioContent.audioContentHashTags
.filter { it.isActive }
.map { it.hashTag!!.tag }
.joinToString(" ") { it }

View File

@ -21,6 +21,8 @@ class AudioContentHashTag {
var createdAt: LocalDateTime? = null
var isActive: Boolean = true
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "content_id", nullable = false)
var audioContent: AudioContent? = null