changed status code for follow/unfollow

This commit is contained in:
Leon Liang 2019-11-22 18:23:49 -05:00
parent 64cc9bd156
commit 9fff6ed81c

View File

@ -449,7 +449,7 @@ exports.addSubscription = (req, res) => {
.catch(err => { .catch(err => {
return res.status(500).json({ err }); return res.status(500).json({ err });
}); });
return res.status(500).json({ error: "shouldn't execute" }); return res.status(200).json({ message: "ok" });
}); });
}; };
@ -489,6 +489,6 @@ exports.removeSub = (req, res) => {
.catch(err => { .catch(err => {
return res.status(500).json({ err }); return res.status(500).json({ err });
}); });
return res.status(500).json({ error: "shouldn't execute" }); return res.status(200).json({ message: "ok" });
}); });
}; };