Skip to content

Commit

Permalink
albums: remove useless clause
Browse files Browse the repository at this point in the history
Signed-off-by: Varun Patil <radialapps@gmail.com>
  • Loading branch information
pulsejet committed Apr 8, 2024
1 parent 7d5c742 commit e774f6b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/Db/AlbumsQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ public function getList(
}

// WHERE these are items with this album
$query->leftJoin('pa', 'photos_albums_files', 'paf', $query->expr()->andX(
$query->expr()->eq('paf.album_id', 'pa.album_id'),
));
$query->leftJoin('pa', 'photos_albums_files', 'paf', $query->expr()->eq('paf.album_id', 'pa.album_id'));

// WHERE these items are memories indexed photos
$query->leftJoin('paf', 'memories', 'm', $query->expr()->eq('m.fileid', 'paf.file_id'));
Expand Down

0 comments on commit e774f6b

Please sign in to comment.