feat: ストレージ設定でpublic urlが正常に指定されていなかった問題を修正

This commit is contained in:
usbharu 2023-10-10 16:19:25 +09:00
parent 216ee78da0
commit 7fff8e39d4
1 changed files with 3 additions and 3 deletions

View File

@ -51,9 +51,9 @@ class S3MediaDataStore(private val s3Client: S3Client, private val storageConfig
)
}.toMap()
return SuccessSavedMedia(
dataMediaSave.name,
pairList.getValue("file").toString(),
pairList.getValue("thumbnail").toString()
name = dataMediaSave.name,
url = "${storageConfig.publicUrl}/${storageConfig.bucket}/${dataMediaSave.name}",
thumbnailUrl = "${storageConfig.publicUrl}/${storageConfig.bucket}/$thumbnailKey"
)
}