Skip to content

Commit

Permalink
bug(return same response): user who liked a comment has same response…
Browse files Browse the repository at this point in the history
… as the one who didn't like it yet when retrieving likes[Finishes #169672715]
  • Loading branch information
habinezadalvan committed Nov 11, 2019
1 parent e219388 commit 5786ac7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/comments.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ class Comments {
return util.send(res);
}
const formattedLikeInfo = Helper.formatLikeInfo(likeInfo.replace(`${username}, `, ''));
util.setSuccess(200, { data: { likesCount, formattedLikeInfo } });
util.setSuccess(200, 'Likes successfully retrieved', { data: { likesCount, likeInfo: formattedLikeInfo } });
return util.send(res);
}
}
Expand Down

0 comments on commit 5786ac7

Please sign in to comment.