Skip to content

Commit

Permalink
Merge pull request #1092 from darkarp/master
Browse files Browse the repository at this point in the history
Fixing error adding tv shows to watchlist
  • Loading branch information
dularion committed Jan 24, 2023
2 parents 2f1ac98 + 0e4b3e8 commit 1fb9cf9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Expand Up @@ -101,7 +101,7 @@ class WatchlistEntryController {
user == currentUser
profile == currentProfile
isDeleted == false
video != null
video != null || tvShow != null
}.list(sort: sortingColumn, order: sortingOrder)
if(!watchlistEntries){
render status: NO_CONTENT
Expand Down
Expand Up @@ -486,13 +486,7 @@ class MarshallerService {
response['lastUpdated'] = watchlistEntry.lastUpdated

response['tvShow'] = watchlistEntry.tvShow
response['video'] = [
id: watchlistEntry.video.id,
mediaType: watchlistEntry.video.getType(),
poster_path: watchlistEntry.video.getPosterPath(),
inWatchlist: watchlistEntry.video.inWatchlist(),
release_date: watchlistEntry.video.getReleaseDate()
]
response['video'] = watchlistEntry.video

return response
}
Expand Down

0 comments on commit 1fb9cf9

Please sign in to comment.