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)
.then(info =>{
res.status(200).json({
info
});
if (info.length > 0) {
res.status(200).json({
info
});
}
}).catch((err) =>{
console.error(err);
});

Loading…
Cancel
Save