diff --git a/apps/envited.ascs.digital/common/aws/handlers/processAssetUpload/processAssetUpload.ts b/apps/envited.ascs.digital/common/aws/handlers/processAssetUpload/processAssetUpload.ts index 1d850a32..e68d4239 100644 --- a/apps/envited.ascs.digital/common/aws/handlers/processAssetUpload/processAssetUpload.ts +++ b/apps/envited.ascs.digital/common/aws/handlers/processAssetUpload/processAssetUpload.ts @@ -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) diff --git a/apps/envited.ascs.digital/common/ipfs/ipfs.ts b/apps/envited.ascs.digital/common/ipfs/ipfs.ts index 2519422c..b8022605 100644 --- a/apps/envited.ascs.digital/common/ipfs/ipfs.ts +++ b/apps/envited.ascs.digital/common/ipfs/ipfs.ts @@ -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