fix(removeStaleOrders): handling network errors

This commit is contained in:
Chris Troutner
2022-05-04 16:07:24 -07:00
parent f5cd59eb12
commit 2ae963ee62
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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
+2 -2
View File
@@ -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