Skip to content

Commit

Permalink
fix: market scan error
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulgalimov committed Apr 19, 2024
1 parent bd6c1cd commit c02658e
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 27 deletions.
32 changes: 14 additions & 18 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "unique-marketplace-backend",
"version": "3.0.249",
"version": "3.0.250",
"description": "Backend project for unique marketplace",
"author": "Unique Network",
"private": true,
Expand Down Expand Up @@ -66,7 +66,7 @@
"helmet": "^6.1.2",
"husky": "^8.0.3",
"minio": "^7.1.1",
"nestjs-graphile-worker": "^0.3.1",
"nestjs-graphile-worker": "^0.7.0",
"nestjs-typeorm-paginate": "^4.0.3",
"pg": "^8.9.0",
"pg-connection-string": "^2.5.0",
Expand Down
7 changes: 1 addition & 6 deletions packages/escrow/src/app/sdk.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,7 @@ export class SdkService {
* @param at
*/
async getSchemaToken(tokenId: number, collectionId: number): Promise<TokenV2WithCollectionV2 | null> {
let token: TokenWithInfoV2Dto;
try {
token = await this.sdk.token.getV2({ collectionId, tokenId });
} catch (e) {
this.logger.error(e);
}
const token: TokenWithInfoV2Dto = await this.sdk.token.getV2({ collectionId, tokenId });
if (!token) {
return null;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/escrow/src/tasks/properties.task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class PropertiesTask {
*/
@TaskHandler()
async handler(payload: Market.Payload, helpers: Helpers): Promise<void> {
this.addSearchIndexIfNotExists(payload);
await this.addSearchIndexIfNotExists(payload);
}

async getTokenInfoItems({ collectionId, tokenId }: CollectionToken): Promise<SerializeTokenType> {
Expand Down

0 comments on commit c02658e

Please sign in to comment.