Skip to content

Commit

Permalink
feat(fix user unfollow)- Update user unfollow controllerfinishes(1641…
Browse files Browse the repository at this point in the history
…08718)
  • Loading branch information
Makwe-O committed Feb 20, 2019
1 parent 2a620e1 commit 0bb0875
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/controllers/followController.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class FollowContoller {
);
}

userUnfollow.destroy();
Follow.destroy({ where: { userId, followersId } });
response(res, 200, 'success', `You unfollowed ${user.userName}`);
} catch (error) {
response(res, 500, 'failure', error.name);
Expand Down

0 comments on commit 0bb0875

Please sign in to comment.