Merge pull request 'test' (#129) from test into main

Reviewed-on: #129
This commit is contained in:
klaus 2024-02-12 07:53:26 +00:00
commit 8e7e77067a
2 changed files with 4 additions and 1 deletions

View File

@ -56,6 +56,9 @@ class AudioContentMainService(
offset = pageable.offset,
limit = pageable.pageSize.toLong()
)
.asSequence()
.filter { !blockMemberRepository.isBlocked(blockedMemberId = member.id!!, memberId = it.creatorId) }
.toList()
return GetNewContentAllResponse(totalCount, items)
}

View File

@ -272,7 +272,7 @@ class CreatorCommunityService(
duration.toMinutes() < 60 -> "${duration.toMinutes()}분전"
duration.toHours() < 24 -> "${duration.toHours()}시간전"
duration.toDays() < 30 -> "${duration.toDays()}일전"
duration.toDays() < 365 -> "${duration.toDays() / 30}분전"
duration.toDays() < 365 -> "${duration.toDays() / 30}개월"
else -> "${duration.toDays() / 365}년전"
}
}