Skip to content

Commit

Permalink
fix(person): only display cast credits
Browse files Browse the repository at this point in the history
  • Loading branch information
believer committed Sep 25, 2023
1 parent 9fae14c commit 735eb55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion routes/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ JOIN LATERAL (
public.movie_person as mp
INNER JOIN public.movie as m ON m.id = mp.movie_id
WHERE
p.id = mp.person_id
p.id = mp.person_id AND mp.job = 'cast'
ORDER BY m.release_date DESC
) as m ON true
WHERE p.id = $1
Expand Down
2 changes: 1 addition & 1 deletion views/person.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ <h1 class="text-xl font-semibold flex gap-2 items-baseline">
<h2
class="font-medium text-slate-700 flex items-center gap-4 after:flex-grow after:bg-slate-300 after:h-[0.5px]"
>
Movies
Cast
</h2>
<ol class="flex flex-col gap-2">
{{ range .Person.Movies }}
Expand Down

0 comments on commit 735eb55

Please sign in to comment.