Compare commits

..

2 Commits

Author SHA1 Message Date
klaus e1bb8e54ed Merge pull request '크리에이터 커뮤니티' (#202) from test into main
Reviewed-on: #202
2024-08-06 11:41:11 +00:00
Klaus 9e679bf787 크리에이터 커뮤니티
- 유료 글일 떄 크리에이터 본인인 경우 오디오 URL이 생성되도록 수정
2024-08-06 20:32:59 +09:00
1 changed files with 8 additions and 1 deletions

View File

@ -214,7 +214,14 @@ class CreatorCommunityService(
val existOrdered = useCanRepository.isExistOrdered(postId = it.id, memberId = memberId)
val audioUrl = if ((it.price <= 0 || existOrdered) && it.audioPath != null) {
val audioUrl = if (
(
it.price <= 0 ||
existOrdered ||
it.creatorId == memberId
) &&
it.audioPath != null
) {
audioContentCloudFront.generateSignedURL(
resourcePath = it.audioPath,
expirationTime = 1000 * 60 * 30