test #34

Merged
klaus merged 2 commits from test into main 2023-09-27 06:49:22 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit ffdcd61894 - Show all commits

View File

@ -263,7 +263,7 @@ class AudioContentQueryRepositoryImpl(private val queryFactory: JPAQueryFactory)
override fun totalCountNewContentFor2Weeks(theme: String, isAdult: Boolean): Int {
var where = audioContent.isActive.isTrue
.and(audioContent.createdAt.loe(LocalDateTime.now()))
.and(audioContent.createdAt.goe(LocalDateTime.now().minusWeeks(2)))
if (!isAdult) {
where = where.and(audioContent.isAdult.isFalse)
@ -291,7 +291,7 @@ class AudioContentQueryRepositoryImpl(private val queryFactory: JPAQueryFactory)
limit: Long
): List<GetAudioContentMainItem> {
var where = audioContent.isActive.isTrue
.and(audioContent.createdAt.loe(LocalDateTime.now()))
.and(audioContent.createdAt.goe(LocalDateTime.now().minusWeeks(2)))
if (!isAdult) {
where = where.and(audioContent.isAdult.isFalse)