Query using Api instead of javascript filter
This commit is contained in:
parent
c8dc1b11e2
commit
a945fc085f
|
@ -4,11 +4,8 @@ const Api = {
|
||||||
* @returns get lots
|
* @returns get lots
|
||||||
*/
|
*/
|
||||||
async get_lots() {
|
async get_lots() {
|
||||||
const request = await this.doRequest(API_URLS.lots, "GET", null);
|
const request = await this.doRequest(`${API_URLS.lots}?type=temporary`, "GET", null);
|
||||||
if (request != undefined) {
|
if (request != undefined) return request.items;
|
||||||
request.items = request.items.filter(itm => !itm.trade) // Avoid show outgoing or incomming trades
|
|
||||||
return request.items;
|
|
||||||
}
|
|
||||||
throw request;
|
throw request;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Reference in a new issue