diff --git a/seasoned_api/src/plex/requestRepository.js b/seasoned_api/src/plex/requestRepository.js index cbd3f20..ecc8e3b 100644 --- a/seasoned_api/src/plex/requestRepository.js +++ b/seasoned_api/src/plex/requestRepository.js @@ -75,7 +75,10 @@ class RequestRepository { fetchRequested(status, type = '%') { return Promise.resolve() .then(() => { - return this.database.all(this.queries.fetchRequestedItems); + if (status === 'requested' || status === 'downloading' || status === 'downloaded') + return this.database.all(this.queries.fetchRequestedItemsByStatus, [status, type]); + else + return this.database.all(this.queries.fetchRequestedItems); }) }