Hotfix 🧯 for returning new poster object variable
This commit is contained in:
		| @@ -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) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user