diff options
author | Ivan Chen <ivan@tagg.id> | 2021-05-11 18:35:29 -0400 |
---|---|---|
committer | Ivan Chen <ivan@tagg.id> | 2021-05-11 18:35:29 -0400 |
commit | fab3b1f7d046895dbaaff1ceddbc75f9ffc7fda0 (patch) | |
tree | 865ef02f4b2866b0b1a66314cea8f7173938d711 /src | |
parent | 17b8a3712ac34cb382c30864b4404f49118220a9 (diff) |
updated with new endpoints
Diffstat (limited to 'src')
-rw-r--r-- | src/services/CommentService.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/services/CommentService.ts b/src/services/CommentService.ts index 75bef2e4..ad8f14ac 100644 --- a/src/services/CommentService.ts +++ b/src/services/CommentService.ts @@ -145,7 +145,7 @@ export const handleLikeUnlikeComment = async ( : COMMENT_REACTIONS_ENDPOINT; if (comment.user_reaction !== null) { // unlike a comment - url += `${comment.user_reaction.id}/`; + url += `${comment.comment_id}/?reaction_type=LIKE`; const response = await fetch(url, { method: 'DELETE', headers: { |