This commit is contained in:
@@ -10,7 +10,16 @@ class Api {
|
|||||||
|
|
||||||
async _get (url) {
|
async _get (url) {
|
||||||
await this.limiter.removeTokens(1)
|
await this.limiter.removeTokens(1)
|
||||||
return axios.get(url).catch(console.error)
|
return axios.get(url).catch((error) => {
|
||||||
|
console.error(error)
|
||||||
|
return {
|
||||||
|
data: {
|
||||||
|
payload: {
|
||||||
|
orders: []
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
async getOrders (url) {
|
async getOrders (url) {
|
||||||
|
|||||||
Reference in New Issue
Block a user