From 31bf6fd1a16d9f2110c9dd05eae3845bd5cacf1c Mon Sep 17 00:00:00 2001 From: Viki Val Date: Thu, 22 Aug 2024 10:25:26 +0200 Subject: [PATCH] Update metadata.ts --- src/mappings/shared/metadata.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mappings/shared/metadata.ts b/src/mappings/shared/metadata.ts index fdd9768..3722a96 100644 --- a/src/mappings/shared/metadata.ts +++ b/src/mappings/shared/metadata.ts @@ -4,7 +4,7 @@ import { Optional } from '@kodadot1/metasquid/types' import type { Content } from '@kodadot1/hyperdata' import { logger } from '@kodadot1/metasquid/logger' import { Store } from '@subsquid/typeorm-store' -import md5 from 'md5' +// import md5 from 'md5' import { MetadataEntity as Metadata } from '../../model/generated' import { fetchMetadata } from '../utils/metadata' @@ -21,9 +21,10 @@ export async function handleMetadata(id: string, store: Store): Promise = { - id: md5(id), + id, + // id: md5(id), description: metadata.description || '', image: metadata.image || metadata.thumbnail, animationUrl: metadata.animationUrl,