Skip to content

Commit

Permalink
Fix Always retry thumb generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Alia5 committed Sep 9, 2023
1 parent 05ee1d2 commit 9d039ed
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions backend/src/Services/Thumbnail/ThumbController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,9 @@ export class ThumbController extends Controller<undefined, ThumbDbAdapter> {
this.logger.debug('using cached thumb path for', path);
return existingThumb;
}
// if (existingThumb === 'error') {
// throw new Error('Thumb generation not possible');
// }

if (existingThumb === 'error') {
throw new Error('Thumb generation not possible');
}

const shouldCrop = () => {
const mime = lookup(path.split('.')?.pop() || '');
Expand Down

0 comments on commit 9d039ed

Please sign in to comment.