Skip to content

Commit

Permalink
Merge pull request #44 from kodadot/main
Browse files Browse the repository at this point in the history
πŸ”– Basick v11
  • Loading branch information
vikiival authored Aug 22, 2024
2 parents d0d13c3 + 34a1441 commit e358f80
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/mappings/shared/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand All @@ -21,9 +21,10 @@ export async function handleMetadata(id: string, store: Store): Promise<Optional
if (!metadata) {
return undefined
}

// https://github.com/kodadot/stick/blob/8d444ee54422837a1ecfd37c81ee6a5fb2959178/src/mappings/shared/metadata.ts#L26
const partial: Partial<Metadata> = {
id: md5(id),
id,
// id: md5(id),
description: metadata.description || '',
image: metadata.image || metadata.thumbnail,
animationUrl: metadata.animationUrl,
Expand Down

0 comments on commit e358f80

Please sign in to comment.