Reverse ordering for watched videos

This commit is contained in:
Pavle Portic 2022-10-30 13:57:54 +01:00
parent f953673648
commit 337b4af251
Signed by: TheEdgeOfRage
GPG Key ID: 66AD4BA646FBC0D2
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ var getWatchedVideosQuery = `
1=1
AND watch_timestamp IS NOT NULL
AND username=$1
ORDER BY watch_timestamp ASC
ORDER BY watch_timestamp DESC
`
func (d *postgresDB) GetWatchedVideos(ctx context.Context, username string) ([]models.Video, error) {