Skip to content

Commit

Permalink
refactor(envited.ascs.digital): add logging
Browse files Browse the repository at this point in the history
Signed-off-by: Roy Scheeren <[email protected]>
  • Loading branch information
royscheeren committed Dec 19, 2024
1 parent d194221 commit 1b1e0c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,10 @@ export const _main =
const pinataIpfsPromises = visualizationFiles.map(
async ({ path, arrayBuffer }: { path: string; arrayBuffer: ArrayBuffer }) => {
log.info(`Uploading ${path} to IPFS`)
return createGroup(metadata.minter).then(group => {
return uploadFile({ arrayBuffer, filename: last(split('/', path)) as string, group })
return createGroup(metadata.minter).then(async group => {
log.info(`Uploading ${path} to IPFS with group ${group}`)
const file = await uploadFile({ arrayBuffer, filename: last(split('/', path)) as string, group })
log.info(file)
})
},
)
Expand All @@ -128,7 +130,7 @@ export const _main =
},
)

Promise.all(writeFilesToMetadataPromises)
await Promise.all(writeFilesToMetadataPromises)
}

// Update stored asset in DB
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ export const UploadedAsset: FC<UploadedAssetProps> = ({ assetIdx, asset }) => {
equals(assetIdx)(0) ? '' : 'border-t border-gray-200'
} hidden px-3 py-3.5 text-sm text-gray-500 lg:table-cell`}
>
{assetStatus}
{match(assetStatus)
.with(AssetStatus.processing, () => (
<div className="inline-flex gap-x-2 text-sm text-gray-500">
Expand Down

0 comments on commit 1b1e0c5

Please sign in to comment.