1
0
mirror of https://github.com/immich-app/immich.git synced 2025-08-08 23:07:06 +02: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:
Mert
2025-01-27 17:20:18 -05:00
committed by GitHub
parent 64d926581f
commit 92412ca2f7
4 changed files with 3 additions and 5 deletions

View File

@ -4,7 +4,7 @@ import { Mocked, vitest } from 'vitest';
export const newMediaRepositoryMock = (): Mocked<IMediaRepository> => {
return {
generateThumbnail: vitest.fn().mockImplementation(() => Promise.resolve()),
generateThumbhash: vitest.fn().mockImplementation(() => Promise.resolve()),
generateThumbhash: vitest.fn().mockResolvedValue(Buffer.from('')),
decodeImage: vitest.fn().mockResolvedValue({ data: Buffer.from(''), info: {} }),
extract: vitest.fn().mockResolvedValue(false),
probe: vitest.fn(),