Ensuring that the options is set by default

This commit is contained in:
Justin Dalrymple 2017-11-25 14:06:00 -05:00
parent d78db02014
commit 84eef7024f

View File

@ -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']){