Skip to content

Commit

Permalink
Fix face detection mapper
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <[email protected]>
  • Loading branch information
marcelklehr committed Aug 15, 2023
1 parent 0b7e4ee commit b637793
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Db/FaceDetectionMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ public function findDetectionForPreviewImageByClusterId(int $clusterId) : FaceDe
try {
return $this->findEntity($qb);
} catch (DoesNotExistException $e) {
$qb = $this->db->getQueryBuilder();
$qb->select(array_map(fn ($col) => 'd.'.$col, FaceDetection::$columns))
->from('recognize_face_detections', 'd')
->where($qb->expr()->eq('d.cluster_id', $qb->createPositionalParameter($clusterId)))
Expand Down

0 comments on commit b637793

Please sign in to comment.