mirror of
https://github.com/ClaytonWWilson/CS307-Team24.git
synced 2026-03-10 13:15:05 +00:00
formatted feed and userline
This commit is contained in:
@@ -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.' });
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user