Skip to content

Commit

Permalink
Merge pull request #290 from UniqueNetwork/feature/schemas-v2
Browse files Browse the repository at this point in the history
fix errors for collections and tokens without schema
  • Loading branch information
ashkuc authored Mar 6, 2024
2 parents 0499dc3 + df31d4d commit 124f1dd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apps/crawler/src/services/collection.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ export class CollectionService {
owner_normalized: normalizeSubstrateAddress(owner),
collection_cover: collectionCover,
burned: collection?.burned ?? false,
default_token_image: collectionDecodedV2?.info.default_token_image,
default_token_image: collectionDecodedV2?.info?.default_token_image,
original_schema_version: collectionDecodedV2?.info?.originalSchemaVersion,
potential_attributes: collectionDecodedV2?.info?.potential_attributes,
customizing: collectionDecodedV2?.info?.customizing,
Expand Down
2 changes: 1 addition & 1 deletion apps/crawler/src/services/token/token.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export class TokenService {

if (
Object.keys(attributes_v1).length === 0 &&
tokenDecodedV2.attributes.length
tokenDecodedV2?.attributes?.length
) {
try {
attributes_v1 = encodeV2AttributesAsV1(tokenDecodedV2.attributes);
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "polkastats-backend-uniquenetwork",
"version": "2.0.85",
"version": "2.0.86",
"description": "",
"author": "Unique Network Team",
"private": true,
Expand Down

0 comments on commit 124f1dd

Please sign in to comment.