Minor changes to media endpoint

This commit is contained in:
efarooqui
2021-06-20 23:11:38 -07:00
parent f093253d87
commit fdee3fa581

View File

@@ -33,7 +33,7 @@ export default ({ config, controller }) => {
}
})
.then(response => response.json())
.then(data => res.send(data.data))
.then(data => res.send(data))
.catch(err => {
res.status(err.status || 404).send({ error: err.message })
});