Skip to content

Commit

Permalink
Merge pull request #182 from roiLeo/release-squid
Browse files Browse the repository at this point in the history
Release squid
  • Loading branch information
vikiival authored Jan 9, 2024
2 parents 9b4a3bb + e351120 commit 8056a12
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/mappings/nfts/setMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ export async function handleMetadataSet(context: Context): Promise<void> {
final.image = metadata?.image
final.media = metadata?.animationUrl

await context.store.save(final)

if (eventIsOnNFT) {
const collection = await getOptional<CollectionEntity>(context.store, CollectionEntity, event.collectionId)

Expand All @@ -58,8 +60,6 @@ export async function handleMetadataSet(context: Context): Promise<void> {
}
}

await context.store.save(final)

if (!event.sn && final.metadata) {
await updateItemMetadataByCollection(context.store, event.collectionId)
}
Expand Down
4 changes: 2 additions & 2 deletions src/mappings/uniques/setMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ export async function handleMetadataSet(context: Context): Promise<void> {
final.image = metadata?.image
final.media = metadata?.animationUrl

await context.store.save(final)

if (eventIsOnNFT) {
const collection = await getOptional<CollectionEntity>(context.store, CollectionEntity, event.collectionId)

Expand All @@ -57,8 +59,6 @@ export async function handleMetadataSet(context: Context): Promise<void> {
}
}

await context.store.save(final)

if (!event.sn && final.metadata) {
await updateItemMetadataByCollection(context.store, event.collectionId)
}
Expand Down

0 comments on commit 8056a12

Please sign in to comment.