Skip to content

Commit

Permalink
feat: log happy too
Browse files Browse the repository at this point in the history
  • Loading branch information
gomesalexandre committed Mar 27, 2024
1 parent 9f5743c commit 4474c84
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,15 @@ const processRelatedAssetIds = async (
return
}

const relatedAssetsResult = await getRelatedAssetIds(assetId, assetData).catch(e => {
console.error(`Error fetching related assets for ${assetId}: ${e}`)
return undefined
})
const relatedAssetsResult = await getRelatedAssetIds(assetId, assetData)
.then(result => {
console.log(`Fetched related assets for ${assetId}`)
return result
})
.catch(e => {
console.error(`Error fetching related assets for ${assetId}: ${e}`)
return undefined
})
const manualRelatedAssetsResult = getManualRelatedAssetIds(assetId)

// ensure empty results get added so we can use this index to generate distinct asset list
Expand Down

0 comments on commit 4474c84

Please sign in to comment.