Fixing errors and warnings

This commit is contained in:
2019-12-03 20:26:31 -05:00
parent 7c7256acbd
commit 72d099e05e
9 changed files with 62 additions and 30 deletions

View File

@@ -153,8 +153,8 @@ exports.quoteWithoutPost = (req, res) => {
}
})
.catch((err) => {
return res.status(500).json({error: 'Something is wrong'});
// return res.status(500).json({error: 'Something is wrong'});
return res.status(500).json({error: err});
})
}
@@ -195,7 +195,8 @@ exports.likePost = (req, res) => {
}
})
.catch((err) => {
return res.status(500).json({error: 'Something is wrong'});
// return res.status(500).json({error: 'Something is wrong'});
return res.status(500).json({error: err});
})
}