mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-24 05:17:39 +00:00
fix(asset): presign poster thumbnail for PDF and poster-enabled assets
This commit is contained in:
@@ -1997,7 +1997,7 @@ export class AssetService {
|
||||
asset.media.thumbnail.key,
|
||||
'GET',
|
||||
)
|
||||
} else if (asset.mediaType?.startsWith('video/') && asset.media.poster?.key) {
|
||||
} else if (asset.media.poster?.key) {
|
||||
thumbnailUrl = await s3Service.presign(
|
||||
process.env.S3_BUCKET || 'shumai',
|
||||
asset.media.poster.key,
|
||||
|
||||
Reference in New Issue
Block a user