fix(server): disable sharp file caching (#6542)

don't cache files
This commit is contained in:
Mert 2024-01-20 23:10:14 -05:00 committed by GitHub
parent 4d417019c0
commit 311261bd4e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,6 +9,7 @@ import { promisify } from 'util';
const probe = promisify<string, FfprobeData>(ffmpeg.ffprobe);
sharp.concurrency(0);
sharp.cache({ files: 0 });
export class MediaRepository implements IMediaRepository {
private logger = new ImmichLogger(MediaRepository.name);