properly reverse items

This commit is contained in:
2026-08-08 07:49:51 +03:00
parent 1173a0f5c8
commit 64ee936aa6
7 changed files with 13 additions and 26 deletions
@@ -1,8 +1,5 @@
-- videobox."saved_movie" definition
selectByUserId:
SELECT * FROM "saved_movie" WHERE user_id = ? ORDER BY saved_movie_id;
selectByUserIdAndMovieId:
SELECT * FROM "saved_movie" WHERE user_id = ? AND movie_id = ?;
@@ -22,4 +19,4 @@ SELECT
FROM saved_movie AS sm
JOIN movie AS m ON sm.movie_id = m.movie_id
WHERE sm.user_id = ?
ORDER BY sm.saved_movie_id DESC;
ORDER BY sm.saved_movie_id ASC;