Skip to content

Commit

Permalink
fix: call hexOrBufferToBase64 for stripMetadata thumbhash (#15917)
Browse files Browse the repository at this point in the history
Fixes #15916 (I think)
  • Loading branch information
bo0tzz authored Feb 5, 2025
1 parent fe42e74 commit 1d6a4e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/dtos/asset-response.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export function mapAsset(entity: AssetEntity, options: AssetMapOptions = {}): As
id: entity.id,
type: entity.type,
originalMimeType: mimeTypes.lookup(entity.originalFileName),
thumbhash: entity.thumbhash?.toString('base64') ?? null,
thumbhash: entity.thumbhash ? hexOrBufferToBase64(entity.thumbhash) : null,
localDateTime: entity.localDateTime,
duration: entity.duration ?? '0:00:00.00000',
livePhotoVideoId: entity.livePhotoVideoId,
Expand Down

0 comments on commit 1d6a4e9

Please sign in to comment.