mirror of
https://github.com/rgrgogu/new_starr.git
synced 2026-09-27 00:12:54 +08:00
s3 service adjustment
quickly Signed-off-by: Kenneth Obsequio <k80308392@gmail.com>
This commit is contained in:
@@ -99,7 +99,7 @@ async function issueForAsset(asset, userId, ip) {
|
||||
let thumbnail_url = null;
|
||||
if (asset.thumbnail_storage_key) {
|
||||
try {
|
||||
thumbnail_url = await s3.getSignedDownloadUrl(asset.thumbnail_storage_key, TOKEN_TTL_SEC);
|
||||
thumbnail_url = await s3.getPublicUrl(asset.thumbnail_storage_key);
|
||||
} catch {
|
||||
// Non-fatal — thumbnail is cosmetic
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user