Skip to content

Commit

Permalink
Merge pull request #546 from leepeuker/fix-person-images-on-dashboard
Browse files Browse the repository at this point in the history
Use cached person images consistently on the dashboard
  • Loading branch information
leepeuker authored Nov 12, 2023
2 parents f9407a6 + 693b3d5 commit d2b165c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Domain/Movie/MovieRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function fetchActors(

return $this->dbConnection->fetchAllAssociative(
<<<SQL
SELECT p.id, p.name, COUNT(DISTINCT m.id) as uniqueCount, COUNT(m.id) as totalCount, p.gender, p.tmdb_poster_path
SELECT p.id, p.name, COUNT(DISTINCT m.id) as uniqueCount, COUNT(m.id) as totalCount, p.gender, p.tmdb_poster_path, p.poster_path
FROM movie m
JOIN movie_cast mc ON m.id = mc.movie_id
JOIN person p ON mc.person_id = p.id
Expand Down Expand Up @@ -254,7 +254,7 @@ public function fetchDirectors(

return $this->dbConnection->fetchAllAssociative(
<<<SQL
SELECT p.id, p.name, COUNT(DISTINCT m.id) as uniqueCount, COUNT(m.id) as totalCount, p.gender, p.tmdb_poster_path
SELECT p.id, p.name, COUNT(DISTINCT m.id) as uniqueCount, COUNT(m.id) as totalCount, p.gender, p.tmdb_poster_path, p.poster_path
FROM movie m
JOIN movie_crew mc ON m.id = mc.movie_id AND job = "Director"
JOIN person p ON mc.person_id = p.id
Expand Down

0 comments on commit d2b165c

Please sign in to comment.