some tweaks in getting episodes

This commit is contained in:
2024-11-06 22:35:15 +01:00
parent 3d71a16633
commit 90c21a1f55
6 changed files with 31 additions and 4 deletions
+2 -1
View File
@@ -14,7 +14,8 @@ where tt_imdb = $1;
-- name: GetEpisodes :many
select * from "episodes"
where tv_show_id = $1;
where tv_show_id = $1
order by season, episode asc;
-- name: IncreasePopularity :exec
update "tv_show" set popularity = popularity + 1