mirror of
https://github.com/immich-app/immich.git
synced 2025-12-29 09:14:59 +03:00
fix(server): person thumbnail generation always being queued (#15734)
* fix person thumbnail generation always being queued * fix thumbhash comparison * fix mock
This commit is contained in:
@@ -194,7 +194,7 @@ export class MediaService extends BaseService {
|
||||
await Promise.all(pathsToDelete.map((path) => this.storageRepository.unlink(path)));
|
||||
}
|
||||
|
||||
if (asset.thumbhash != generated.thumbhash) {
|
||||
if (!asset.thumbhash || Buffer.compare(asset.thumbhash, generated.thumbhash) !== 0) {
|
||||
await this.assetRepository.update({ id: asset.id, thumbhash: generated.thumbhash });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user