Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions lib/SellingPartner.js
Original file line number Diff line number Diff line change
Expand Up @@ -719,13 +719,7 @@ class SellingPartner {
throw new CustomError(error);
}

// If there is a pagination outside payload (like for getInventorySummaries), this will include it with the result
if (json_res.pagination && json_res.payload) {
return Object.assign(json_res.pagination, json_res.payload);
}

// Some calls do not return response in payload but directly (i.e. operation "getSmallAndLightEligibilityBySellerSKU")!
return json_res.payload || json_res;
return json_res;
}

// Download a report or feed result
Expand Down