예약 업로드 된 오디오 콘텐츠 릴리즈
This commit is contained in:
parent
c479e5ad81
commit
f89a61e23e
|
@ -199,8 +199,9 @@ class AudioContentController(
|
||||||
fun releaseContent() = run {
|
fun releaseContent() = run {
|
||||||
val contentIdList = repository.getNotReleaseContentId()
|
val contentIdList = repository.getNotReleaseContentId()
|
||||||
|
|
||||||
contentIdList.forEach {
|
for (contentId in contentIdList) {
|
||||||
service.releaseContent(it)
|
println(contentId)
|
||||||
|
service.releaseContent(contentId)
|
||||||
}
|
}
|
||||||
|
|
||||||
ApiResponse.ok(null)
|
ApiResponse.ok(null)
|
||||||
|
|
|
@ -593,7 +593,7 @@ class AudioContentQueryRepositoryImpl(private val queryFactory: JPAQueryFactory)
|
||||||
override fun getNotReleaseContentId(): List<Long> {
|
override fun getNotReleaseContentId(): List<Long> {
|
||||||
val where = audioContent.isActive.isFalse
|
val where = audioContent.isActive.isFalse
|
||||||
.and(audioContent.releaseDate.isNotNull)
|
.and(audioContent.releaseDate.isNotNull)
|
||||||
.and(audioContent.releaseDate.loe(LocalDateTime.now()))
|
.and(audioContent.releaseDate.goe(LocalDateTime.now()))
|
||||||
|
|
||||||
return queryFactory
|
return queryFactory
|
||||||
.select(audioContent.id)
|
.select(audioContent.id)
|
||||||
|
|
Loading…
Reference in New Issue