Skip to content

Commit

Permalink
fix: Order activities on playlist by timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafeqm committed Dec 28, 2022
1 parent c80105b commit 20597bc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "open-music-api",
"version": "2.2.0",
"version": "2.2.1",
"description": "",
"private": true,
"main": "src/server.ts",
Expand Down
3 changes: 2 additions & 1 deletion src/services/database/PlaylistsService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ export default class PlaylistsService {
FROM activities_on_playlist
LEFT JOIN users ON activities_on_playlist.user_id = users.id
LEFT JOIN songs ON activities_on_playlist.song_id = songs.id
WHERE activities_on_playlist.playlist_id = ${id}`;
WHERE activities_on_playlist.playlist_id = ${id}
ORDER BY activities_on_playlist.time`;
}

async verifyPlaylistOwner(
Expand Down

0 comments on commit 20597bc

Please sign in to comment.