Skip to content

Commit

Permalink
fix: remove url using next since not working
Browse files Browse the repository at this point in the history
  • Loading branch information
roxaaams committed May 2, 2024
1 parent f253be7 commit 8691488
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
9 changes: 0 additions & 9 deletions api/endpoints/contactlist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,6 @@ _.extend(ContactList.prototype, {
return this._requireParameters(payload, ['contact_list_id']).then(function() {
logger.log('contactlist_fetch');

if (payload.next) {
var url = payload.next;
return this._request.get(
this._getCustomerId(options),
url,
options
);
}

var url = util.format('/contactlist/%s/contactIds', payload.contact_list_id);
return this._request.get(
this._getCustomerId(options),
Expand Down
5 changes: 0 additions & 5 deletions api/endpoints/contactlist/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ describe('SuiteAPI Contact List endpoint', function() {
contact_list_id: 2
}).shouldGetResultFromEndpoint('/contactlist/2/contactIds');

testApiMethod(ContactListApi, 'fetch').withArgs({
contact_list_id: 2,
next: '/contactlist/2/contactIds?$skiptoken=750&$top=1000'
}).shouldGetResultFromEndpoint('/contactlist/2/contactIds?$skiptoken=750&$top=1000');

testApiMethod(ContactListApi, 'fetch').withArgs({
contact_list_id: 2
}).shouldGetResultFromEndpoint('/contactlist/2/contactIds');
Expand Down

0 comments on commit 8691488

Please sign in to comment.