diff --git a/gather/src/api.js b/gather/src/api.js index b23f573..bc427e4 100644 --- a/gather/src/api.js +++ b/gather/src/api.js @@ -10,7 +10,16 @@ class Api { async _get (url) { 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) {