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() }.toMap()
return SuccessSavedMedia( return SuccessSavedMedia(
dataMediaSave.name, name = dataMediaSave.name,
pairList.getValue("file").toString(), url = "${storageConfig.publicUrl}/${storageConfig.bucket}/${dataMediaSave.name}",
pairList.getValue("thumbnail").toString() thumbnailUrl = "${storageConfig.publicUrl}/${storageConfig.bucket}/$thumbnailKey"
) )
} }