From b5f03d5df100c296adc43893cdba2e0d6a3db350 Mon Sep 17 00:00:00 2001 From: Jonathan Carter Date: Tue, 3 Dec 2019 21:08:06 -0800 Subject: [PATCH] Fixing comment delete/edit methods --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 9a542e0..dfe83af 100644 --- a/index.js +++ b/index.js @@ -352,7 +352,7 @@ class Gists extends GitHub { */ editComment(gist_id, comment_id, options) { - return this.patch(`/gists/${gist_id}/comments/${comment_id}`, options); + return super.patch(`/gists/${gist_id}/comments/${comment_id}`, options); } /** @@ -370,7 +370,7 @@ class Gists extends GitHub { */ deleteComment(gist_id, comment_id, options) { - return this.delete(`/gists/${gist_id}/comments/${comment_id}`, options); + return super.delete(`/gists/${gist_id}/comments/${comment_id}`, options); } }