formatted feed and userline

This commit is contained in:
Aditya Sankaran
2019-11-27 20:57:42 -05:00
parent e8110d643f
commit c34f06f130
3 changed files with 18 additions and 10 deletions

View File

@@ -105,12 +105,11 @@ exports.quoteWithPost = (req, res) => {
})
}
else {
console.log("Post has already been quoted.");
return res.status(400).json({ error: 'Post has already been quoted.' });
}
})
.catch((err) => {
return res.status(500).json({error: 'Something is wrong'});
return res.status(500).json({error: err});
})
@@ -151,7 +150,6 @@ exports.quoteWithoutPost = (req, res) => {
})
}
else {
console.log("Post has already been quoted.");
return res.status(400).json({ error: 'Post has already been quoted.' });
}
})