Merge pull request #95 from ClaytonWWilson/fix_follow

Fix follow
This commit is contained in:
Leon Liang
2019-12-02 00:08:07 -05:00
committed by GitHub
2 changed files with 28 additions and 12 deletions

View File

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