Skip to content

Commit

Permalink
get rid of useless comments and console.logs
Browse files Browse the repository at this point in the history
  • Loading branch information
alisonzthu committed Apr 24, 2017
1 parent 6901723 commit 76aef1c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions server/controllers/follows.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ router.post('/follow', (req, res) => {
let followerObj = {};
followerObj.follower_id = decoded.userId;
followerObj.followee_id = req.body;
//check if there are any user follow info.
//if yes unfollow
//if no follow

model.createFollower(followerObj)
.then(result => {
res.status(201).send(result);
Expand All @@ -52,7 +50,6 @@ router.post('/follow', (req, res) => {
});

router.post('/unfollow', (req, res) => {
console.log('try to unfolow');
let authToken = req.headers.authorization.split(' ')[1];

jwt.verify(authToken, process.env.jwtSecret, (err, decoded) => {
Expand Down

0 comments on commit 76aef1c

Please sign in to comment.