Skip to content

Commit 6627837

Browse files
committed
assign short version ddo
1 parent 67a52da commit 6627837

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/components/Indexer/processor.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -785,10 +785,7 @@ export class MetadataStateEventProcessor extends BaseEventProcessor {
785785
// in case their state changes back to active.
786786
ddoInstance.getDDOData().indexedMetadata.nft.state = metadataState
787787
if (shortVersion) {
788-
ddoInstance.getDDOData().id = shortVersion.id
789-
ddoInstance.getDDOData().chainId = shortVersion.chainId
790-
ddoInstance.getDDOData().nftAddress = shortVersion.nftAddress
791-
ddoInstance.getDDOData().indexedMetadata = shortVersion.indexedMetadata
788+
Object.assign(ddoInstance.getDDOData(), shortVersion)
792789
}
793790
} else {
794791
// Still update until we validate and polish schemas for DDO.

0 commit comments

Comments
 (0)