mirror of
https://github.com/jdalrymple/gitbeaker.git
synced 2026-01-25 16:04:01 +00:00
Ensuring that the options is set by default
This commit is contained in:
parent
d78db02014
commit
84eef7024f
@ -1,6 +1,6 @@
|
||||
const LinkParser = require('parse-link-header');
|
||||
|
||||
async function getAllPages(client, endpoint, options, results = []) {
|
||||
async function getAllPages(client, endpoint, options = {}, results = []) {
|
||||
const response = await client.get(endpoint, options, true);
|
||||
|
||||
if(!response.headers['x-page']){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user