From 16773f121b83356f4c78761b19dc2c840f7570cd Mon Sep 17 00:00:00 2001 From: Roy Scheeren Date: Fri, 22 Nov 2024 20:33:54 +0100 Subject: [PATCH] refactor(envited.ascs.digital): debug Signed-off-by: Roy Scheeren --- .../common/asset/validateAndCreateMetadata.ts | 1 + .../common/asset/validateAndCreateMetadata.utils.ts | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/envited.ascs.digital/common/asset/validateAndCreateMetadata.ts b/apps/envited.ascs.digital/common/asset/validateAndCreateMetadata.ts index 5f355348..7fb87ed2 100644 --- a/apps/envited.ascs.digital/common/asset/validateAndCreateMetadata.ts +++ b/apps/envited.ascs.digital/common/asset/validateAndCreateMetadata.ts @@ -222,6 +222,7 @@ export const _validateAndCreateMetadata = try { const { conforms, reports, data } = await getShaclSchemaAndValidate(byteArray) const assetCID = await createFilename(byteArray) + console.log(data.domainMetadata, typeof data.domainMetadata) const domainMetadataCID = await createFilename(data.domainMetadata) const connection = await db() diff --git a/apps/envited.ascs.digital/common/asset/validateAndCreateMetadata.utils.ts b/apps/envited.ascs.digital/common/asset/validateAndCreateMetadata.utils.ts index aac9b676..c7d49c84 100644 --- a/apps/envited.ascs.digital/common/asset/validateAndCreateMetadata.utils.ts +++ b/apps/envited.ascs.digital/common/asset/validateAndCreateMetadata.utils.ts @@ -27,7 +27,6 @@ export const _createFilename = ({ raw, sha256, CID }: { raw: any; sha256: Hasher<'sha2-256', 18>; CID: any }) => async (byteArray: any) => { try { - console.log(typeof byteArray, byteArray instanceof Uint8Array) const rawBytes = raw.encode(byteArray) const hash = await sha256.digest(rawBytes) const cid = CID.create(1, raw.code, hash)