Skip to content

Commit

Permalink
refactor(envited.ascs.digital): debug
Browse files Browse the repository at this point in the history
Signed-off-by: Roy Scheeren <[email protected]>
  • Loading branch information
royscheeren committed Nov 22, 2024
1 parent 16773f1 commit a671e7c
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +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 domainMetadataCID = await createFilename(Buffer.from(JSON.stringify(data.domainMetadata)))

const connection = await db()
const user = await connection.getUserById(asset.userId)
Expand All @@ -245,7 +244,7 @@ export const _validateAndCreateMetadata =
visualizationFiles,
})(data.manifest)

const modifiedManifestCID = await createFilename(modifiedManifest)
const modifiedManifestCID = await createFilename(Buffer.from(JSON.stringify(modifiedManifest)))

const tokenMetadata = createTokenMetadata({
assetCID,
Expand Down

0 comments on commit a671e7c

Please sign in to comment.