Skip to content

Commit

Permalink
Fix for freeBusy when using next_page option
Browse files Browse the repository at this point in the history
  • Loading branch information
cristiLuca committed Aug 21, 2018
1 parent 4624dfe commit 268e949
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/index.js
Expand Up @@ -212,7 +212,11 @@ cronofy.prototype.elevatedPermissions = function () {
cronofy.prototype.freeBusy = function () {
var details = this._parseArguments(arguments, ['access_token']);

return this._httpGet(details.options.next_page || '/v1/free_busy', details.options, details.callback);
if (details.options.next_page) {
return this._httpCall('GET', details.options.next_page, details.options, details.callback, ['access_token', 'next_page']);
}

return this._httpGet('/v1/free_busy', details.options, details.callback);
};

cronofy.prototype.listCalendars = function () {
Expand Down

0 comments on commit 268e949

Please sign in to comment.