From 74f6a7eee1506f1a112811e93955505c69ba448f Mon Sep 17 00:00:00 2001 From: Roy Scheeren Date: Thu, 19 Dec 2024 12:59:15 +0100 Subject: [PATCH] refactor(envited.ascs.digital): add debug log Signed-off-by: Roy Scheeren --- .../handlers/processAssetUpload/processAssetUpload.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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 08b3ac3d..d30be7ff 100644 --- a/apps/envited.ascs.digital/common/aws/handlers/processAssetUpload/processAssetUpload.ts +++ b/apps/envited.ascs.digital/common/aws/handlers/processAssetUpload/processAssetUpload.ts @@ -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 }, )