Skip to content

Commit

Permalink
Merge pull request #286 from UniqueNetwork/feature/schemas-v2
Browse files Browse the repository at this point in the history
fixed crawler build
  • Loading branch information
ashkuc committed Mar 1, 2024
2 parents bb3aa9b + 7906d97 commit 5517159
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions apps/crawler/src/services/token/token.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,8 +356,7 @@ export class TokenService {
)
);

if (tokenData.tokenDecodedV2?.attributes)
result = SubscriberAction.UPSERT;
result = SubscriberAction.UPSERT;
} else {
// burn token and update token owners
const ownerToken = tryGetNormalizedAddress(data, 2);
Expand Down
4 changes: 2 additions & 2 deletions apps/crawler/src/services/token/token.types.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import {
TokenByIdResult,
TokenByIdResultV2,
TokenWithInfoV2,
TokenPropertiesResult,
} from '@unique-nft/substrate-client/tokens';
import { ITokenEntities, TokenType } from '@entities/Tokens';

export interface TokenData {
tokenDecoded: TokenByIdResult;
tokenDecodedV2: TokenByIdResultV2;
tokenDecodedV2: TokenWithInfoV2;
tokenProperties: TokenPropertiesResult;
isBundle: boolean;
}
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.75",
"version": "2.0.76",
"description": "",
"author": "Unique Network Team",
"private": true,
Expand Down

0 comments on commit 5517159

Please sign in to comment.