Skip to content

Commit

Permalink
Use cached person images consistently on the dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
leepeuker committed Nov 12, 2023
1 parent f9407a6 commit 693b3d5
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 693b3d5

Please sign in to comment.