Return data if not empty on MoreInfo

pull/1/head
Jéluchu 5 years ago
parent 9587144601
commit 37e2e813d1

@ -172,9 +172,11 @@ router.get('/moreInfo/:title' , (req, res) =>{
api.getMoreInfo(title) api.getMoreInfo(title)
.then(info =>{ .then(info =>{
if (info.length > 0) {
res.status(200).json({ res.status(200).json({
info info
}); });
}
}).catch((err) =>{ }).catch((err) =>{
console.error(err); console.error(err);
}); });

Loading…
Cancel
Save