Skip to content

Commit e0c3951

Browse files
committed
bug fix
1 parent e874017 commit e0c3951

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

service/src/services/ThumbnailService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export class ThumbnailService
7272
{
7373
const isImage = mediaType.startsWith("image/");
7474

75-
const thumbPaths = isImage ? await this.ComputeImageThumb(mediaFilePath, mediaInfo) : await this.ComputeVideoThumbs(mediaFilePath, mediaInfo);
75+
const thumbPaths = isImage ? [await this.ComputeImageThumb(mediaFilePath, mediaInfo)] : await this.ComputeVideoThumbs(mediaFilePath, mediaInfo);
7676
for (const thumbPath of thumbPaths)
7777
{
7878
const buffer = await fs.promises.readFile(thumbPath);

0 commit comments

Comments
 (0)