test #367

Merged
klaus merged 2 commits from test into main 2025-11-20 12:53:01 +00:00
Showing only changes of commit 26eae4b06e - Show all commits

View File

@@ -1453,11 +1453,10 @@ class AudioContentQueryRepositoryImpl(
isAdult: Boolean isAdult: Boolean
): AudioContent? { ): AudioContent? {
var where = audioContent.member.id.eq(creatorId) var where = audioContent.member.id.eq(creatorId)
.and( .and(audioContent.isActive.isTrue)
audioContent.isActive.isTrue
.and(audioContent.duration.isNotNull) .and(audioContent.duration.isNotNull)
.or(audioContent.releaseDate.isNotNull.and(audioContent.duration.isNotNull)) .and(audioContent.releaseDate.isNotNull)
) .and(audioContent.releaseDate.gt(LocalDateTime.now()))
if (!isAdult) { if (!isAdult) {
where = where.and(audioContent.isAdult.isFalse) where = where.and(audioContent.isAdult.isFalse)