Skip to content

Commit

Permalink
fix: 🐛 fixes search cancellations request with query parameters
Browse files Browse the repository at this point in the history
Due to params being nested twice, the query string was wrongly formed in the request causing the error 400 bad request being returned by ebay api. Worked fine with not parameters were passed
  • Loading branch information
namanattri committed Jan 18, 2024
1 parent c8acb0f commit 60133ab
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/api/restful/postOrder/cancellation/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,7 @@ export default class Cancellation extends Restful {
*/
public search(params: CancellationSearchParams) {
return this.get(`/cancellation/search`, {
params: {
params
}
params
});
}
}

0 comments on commit 60133ab

Please sign in to comment.