Hotfix 🧯 for returning new poster object variable

This commit is contained in:
2019-06-04 21:41:10 +02:00
parent 784aa2616a
commit e6796aff8b

View File

@@ -86,7 +86,11 @@ class RequestRepository {
} }
throw new Error('Unable to fetch your requests'); 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) { updateRequestedById(id, type, status) {