Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Corrected condition on mimtype
Signed-off-by: charleypaulus <[email protected]>
  • Loading branch information
charleypaulus committed Nov 3, 2023
commit d1419d9e52a983cdb338628714ec9b7001e33c2c
2 changes: 1 addition & 1 deletion core/Command/Preview/Delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ private function getPreviewsToDelete(OutputInterface $output, string $previewFol
$and->add($qb->expr()->isNull('b.fileid'));
}
if ($selectedMimetype) {
$and->add($qb->expr()->eq('b.mimetype', $qb->createNamedParameter($this->mimeTypeLoader->getId('image/jpeg'))));
$and->add($qb->expr()->eq('b.mimetype', $qb->createNamedParameter($this->mimeTypeLoader->getId($selectedMimetype))));
}

// Build query
Expand Down