Skip to content

Commit

Permalink
deprecated reaction delete call
Browse files Browse the repository at this point in the history
  • Loading branch information
jdanyow committed Feb 11, 2022
1 parent 36695bf commit cd59d6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ export async function toggleReaction(url: string, content: ReactionID) {
throw new Error('expected "201 reaction created" or "200 reaction already exists"');
}
// reaction already exists... delete.
const deleteRequest = githubRequest(`reactions/${reaction.id}`, { method: 'DELETE' });
const deleteRequest = githubRequest(`${url}/${reaction.id}`, { method: 'DELETE' });
deleteRequest.headers.set('Accept', GITHUB_ENCODING__REST_V3);
await githubFetch(deleteRequest);
return { reaction, deleted: true };
Expand Down

0 comments on commit cd59d6d

Please sign in to comment.