It should return the promise.

This commit is contained in:
Skyler Mäntysaari
2023-01-25 01:34:16 +02:00
parent b00b5ebd8c
commit d8f00d4809

View File

@@ -61,7 +61,7 @@ export class ThumbnailGeneratorProcessor {
asset.id +
' using sharp, failing over to exiftool-vendored',
);
exiftool.extractThumbnail(asset.originalPath, jpegThumbnailPath);
return exiftool.extractThumbnail(asset.originalPath, jpegThumbnailPath);
});
await this.assetRepository.update({ id: asset.id }, { resizePath: jpegThumbnailPath });
} catch (error: any) {