diff --git a/seasoned_api/src/plex/requestRepository.js b/seasoned_api/src/plex/requestRepository.js index 447384e..7006758 100644 --- a/seasoned_api/src/plex/requestRepository.js +++ b/seasoned_api/src/plex/requestRepository.js @@ -86,7 +86,11 @@ class RequestRepository { } throw new Error('Unable to fetch your requests'); }) - .then((result) => { return result; }); + .then((result) => { + // TODO do a correct mapping before sending, not just a dump of the database + result.map(item => item.poster = item.poster_path) + return result + }); } updateRequestedById(id, type, status) {