Test force json parse MoreInfo

pull/1/head
Jéluchu 5 years ago
parent 0615b0f9c8
commit e59e7e4806

@ -171,8 +171,9 @@ router.get('/moreInfo/:title' , (req, res) =>{
let title = req.params.title;
api.getMoreInfo(title)
.then(info =>{
if (info.length > 0) {
.then(data =>{
if (data.length > 0) {
let info = JSON.parse(JSON.stringify(data))
res.status(200).json({
info
});

Loading…
Cancel
Save