Skip to content

Commit

Permalink
refactor(envited.ascs.digital): add debug log
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 8546679 commit 74f6a7e
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,14 @@ export const _main =
async ({ path, arrayBuffer }: { path: string; arrayBuffer: ArrayBuffer }) => {
log.info(`Uploading ${path} to IPFS`)
const group = await createGroup(metadata.minter)
const ipfsHash = await uploadFile({ arrayBuffer, filename: last(split('/', path)) as string, group })
console.log(ipfsHash)
console.log(group)
let ipfsHash = ''
try {
ipfsHash = await uploadFile({ arrayBuffer, filename: last(split('/', path)) as string, group })
console.log(ipfsHash)
} catch (err) {
console.log(err)
}
return ipfsHash
},
)
Expand Down

0 comments on commit 74f6a7e

Please sign in to comment.