diff --git a/package-lock.json b/package-lock.json index 8598663..3025b50 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "open-music-api", - "version": "2.2.0", + "version": "2.2.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "open-music-api", - "version": "2.2.0", + "version": "2.2.1", "license": "UNLICENSED", "dependencies": { "@hapi/boom": "^10.0.0", diff --git a/package.json b/package.json index 6b398c4..45e4422 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "open-music-api", - "version": "2.2.0", + "version": "2.2.1", "description": "", "private": true, "main": "src/server.ts", diff --git a/src/services/database/PlaylistsService.ts b/src/services/database/PlaylistsService.ts index 6b774cc..6cb3bb0 100644 --- a/src/services/database/PlaylistsService.ts +++ b/src/services/database/PlaylistsService.ts @@ -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(