예약 업로드 #113

Merged
klaus merged 18 commits from test into main 2024-01-10 16:59:51 +00:00
2 changed files with 4 additions and 3 deletions
Showing only changes of commit f89a61e23e - Show all commits

View File

@ -199,8 +199,9 @@ class AudioContentController(
fun releaseContent() = run {
val contentIdList = repository.getNotReleaseContentId()
contentIdList.forEach {
service.releaseContent(it)
for (contentId in contentIdList) {
println(contentId)
service.releaseContent(contentId)
}
ApiResponse.ok(null)

View File

@ -593,7 +593,7 @@ class AudioContentQueryRepositoryImpl(private val queryFactory: JPAQueryFactory)
override fun getNotReleaseContentId(): List<Long> {
val where = audioContent.isActive.isFalse
.and(audioContent.releaseDate.isNotNull)
.and(audioContent.releaseDate.loe(LocalDateTime.now()))
.and(audioContent.releaseDate.goe(LocalDateTime.now()))
return queryFactory
.select(audioContent.id)