mirror of
https://github.com/Permissionless-Software-Foundation/bch-dex.git
synced 2026-09-21 16:52:00 -07:00
fix(removeStaleOrders): handling network errors
This commit is contained in:
@@ -363,8 +363,8 @@ class OfferUseCases {
|
||||
console.log(`Deleting Offer with bad data: ${JSON.stringify(thisOffer, null, 2)}`)
|
||||
await thisOffer.remove()
|
||||
continue
|
||||
} else if(err.isAxiosError) {
|
||||
console.log(`Error trying to contact api.fullstack.cash`)
|
||||
} else if (err.isAxiosError) {
|
||||
console.log('Error trying to contact api.fullstack.cash')
|
||||
continue
|
||||
} else {
|
||||
throw err
|
||||
|
||||
@@ -202,8 +202,8 @@ class OrderLib {
|
||||
console.log(`Deleting Order with bad data: ${JSON.stringify(thisOrder, null, 2)}`)
|
||||
await thisOrder.remove()
|
||||
continue
|
||||
} else if(err.isAxiosError) {
|
||||
console.log(`Error trying to contact api.fullstack.cash`)
|
||||
} else if (err.isAxiosError) {
|
||||
console.log('Error trying to contact api.fullstack.cash')
|
||||
continue
|
||||
} else {
|
||||
throw err
|
||||
|
||||
Reference in New Issue
Block a user