Skip to content

Commit

Permalink
feat: Support passing partial withdrawal filter options
Browse files Browse the repository at this point in the history
  • Loading branch information
PixelBoii committed Feb 9, 2022
1 parent 840d0a9 commit 9fe2c47
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/CSGOEmpire.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,16 @@ export default class CSGOEmpire {
return res.data;
}

async queryWithdrawItems(options: WithdrawalFilters = { per_page: 160, page: 1, price_max_above: 15, sort: 'desc', order: 'market_value' }, addNewItems: boolean = false) {
async queryWithdrawItems(options: WithdrawalFilters, addNewItems: boolean = false) {
const res = await this.get('/trading/items', {
params: options
params: {
per_page: 160,
page: 1,
price_max_above: 15,
sort: 'desc',
order: 'market_value',
...options,
}
});

return new Shop(
Expand Down

0 comments on commit 9fe2c47

Please sign in to comment.