mirror of
https://github.com/ClaytonWWilson/CS307-Team24.git
synced 2025-12-15 18:08:46 +00:00
add catch in addSubscription
This commit is contained in:
parent
6f77d03e2d
commit
5474543af4
@ -1212,7 +1212,10 @@ exports.addSubscription = (req, res) => {
|
||||
return res.status(500).json({ err });
|
||||
});
|
||||
// return res.status(200).json({ message: "ok" });
|
||||
});
|
||||
})
|
||||
.catch((error) => {
|
||||
return res.status(400).json({message: "That user doesn't exist", error});
|
||||
})
|
||||
};
|
||||
|
||||
exports.getSubs = (req, res) => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user