Skip to content

Commit

Permalink
update default sorting on dashboard to be sort: 'first_air_date', ord…
Browse files Browse the repository at this point in the history
…er: 'DESC'
  • Loading branch information
Antonia Engfors committed Dec 2, 2022
1 parent ad0f18c commit 28049b9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ angular.module('streama').controller('dashCtrl',

function initMedia() {
if(isDashType('home') || isDashType('discover-movies')){
vm.movie = mediaListService.init(apiService.dash.listMovies, {sort: 'title', order: 'ASC'}, currentUser);
vm.movie = mediaListService.init(apiService.dash.listMovies, {sort: 'release_date', order: 'DESC'}, currentUser);
}
if(isDashType('home') || isDashType('discover-shows')){
vm.tvShow = mediaListService.init(apiService.dash.listShows, {sort: 'name', order: 'ASC'}, currentUser);
vm.tvShow = mediaListService.init(apiService.dash.listShows, {sort: 'first_air_date', order: 'DESC'}, currentUser);
}
if(isDashType('home') || isDashType('continue-watching')){
vm.continueWatching = mediaListService.init(apiService.dash.listContinueWatching, {sort: 'lastUpdated', order: 'DESC'}, currentUser);
Expand Down

0 comments on commit 28049b9

Please sign in to comment.