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 6f62933 commit c8c5a77
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export const _main =
let ipfsHash = ''
console.log(arrayBuffer, metadata.minter)
try {
console.log("Try")
console.log('Try')
console.log(createGroup)
const group = await createGroup(metadata.minter)
console.log(group)
Expand Down
17 changes: 12 additions & 5 deletions apps/envited.ascs.digital/common/ipfs/ipfs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,18 @@ export const uploadFile =
}

export const createGroup = (pinata: PinataSDK) => async (groupName: string) => {
const group = await pinata.groups.create({
name: groupName,
})

return group.id
console.log('createGroup', groupName)
try {
const group = await pinata.groups.create({
name: groupName,
})

return group.id
} catch (error) {
console.log('error', error)
return ''
}

}

export const download = (pinata: PinataSDK) => pinata.gateways.get

0 comments on commit c8c5a77

Please sign in to comment.