Skip to content
This repository was archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
Fix issue with un-caught promise
Browse files Browse the repository at this point in the history
  • Loading branch information
anxolin committed Oct 26, 2021
1 parent ee349e8 commit 50064c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/custom/state/orders/updaters/PendingOrdersUpdater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,16 @@ async function _updatePresignGnosisSafeTx(
const getSafeTxPromises = allPendingOrders
// Update orders that are pending for presingature
.filter((order) => order.presignGnosisSafeTxHash && order.status === OrderStatus.PRESIGNATURE_PENDING)
.map(async (order) => {
.map((order): Promise<void> => {
// Get safe info and receipt
const presignGnosisSafeTxHash = order.presignGnosisSafeTxHash as string
console.log('[PendingOrdersUpdater] Get Gnosis Transaction info for tx:', presignGnosisSafeTxHash)

const { promise: safeTransactionPromise } = getSafeInfo(presignGnosisSafeTxHash)

// Get safe info
safeTransactionPromise
.then(async (safeTransaction) => {
return safeTransactionPromise
.then((safeTransaction) => {
console.log('[PendingOrdersUpdater] Update Gnosis Safe transaction info: ', safeTransaction)
updatePresignGnosisSafeTx({ orderId: order.id, chainId, safeTransaction })
})
Expand Down

0 comments on commit 50064c1

Please sign in to comment.