From 2875249134c8acb9835ce5373e8aadc3666fc498 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Vit=C3=A1k?= Date: Mon, 13 Feb 2017 02:01:25 +0100 Subject: [PATCH] Use _requestAllPages in listGists() --- lib/User.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/User.js b/lib/User.js index 3f3b4bb6..c079f63f 100644 --- a/lib/User.js +++ b/lib/User.js @@ -88,7 +88,7 @@ class User extends Requestable { * @return {Promise} - the promise for the http request */ listGists(cb) { - return this._request('GET', this.__getScopedUrl('gists'), null, cb); + return this._requestAllPages(this.__getScopedUrl('gists'), null, cb); } /**