Skip to content

Commit

Permalink
Order by uservideoId instead
Browse files Browse the repository at this point in the history
  • Loading branch information
ftab committed Aug 4, 2024
1 parent 992fcc8 commit 5fa0142
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/videos.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ async function getMultiple(userid, page = 1){
`SELECT videoId, youtubeId, soundcloudId, vimeoId, bandcampId, isFlagged, tags, title
FROM video WHERE videoId IN (
SELECT videoId FROM user_video WHERE userId = ?
) ORDER BY videoId LIMIT ?,?`,
) ORDER BY uservideoId LIMIT ?,?`,
[userid, offset, config.listPerPage]
);
const data = helper.emptyOrRows(rows);
Expand Down

0 comments on commit 5fa0142

Please sign in to comment.