diff --git a/backend/src/utils/gist.js b/backend/src/utils/gist.js index fd12a07..a6736d7 100644 --- a/backend/src/utils/gist.js +++ b/backend/src/utils/gist.js @@ -114,15 +114,17 @@ export default class Gist { return; }); } else { - return this.http.get('/gists').then((response) => { - const gists = JSON.parse(response.body); - for (let g of gists) { - if (g.description === this.key) { - return g; + return this.http + .get('/gists?per_page=100&page=1') + .then((response) => { + const gists = JSON.parse(response.body); + for (let g of gists) { + if (g.description === this.key) { + return g; + } } - } - return; - }); + return; + }); } }