Skip to content

Commit

Permalink
indexer fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ElessarST committed Feb 8, 2024
1 parent cfaddcb commit 1ee0fb0
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions indexer/src/processing/storage/local.storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,15 +203,19 @@ export class LocalStorage implements IStorage {
}

private async loadMarketplace() {
this.marketplace = await this.store.findOne(Marketplace, { where: {} });
if (!this.marketplace!.address) {
this.marketplace!.address = config.marketplaceProgram;
}
if (!this.marketplace!.metadata) {
this.marketplace!.metadata = marketplaceMeta;
}
if (!this.marketplace!.nftMetadata) {
this.marketplace!.nftMetadata = nftMeta;
try {
this.marketplace = await this.store.findOne(Marketplace, { where: {} });
if (!this.marketplace!.address) {
this.marketplace!.address = config.marketplaceProgram;
}
if (!this.marketplace!.metadata) {
this.marketplace!.metadata = marketplaceMeta;
}
if (!this.marketplace!.nftMetadata) {
this.marketplace!.nftMetadata = nftMeta;
}
} catch (e) {
console.error(e);
}
}

Expand Down

0 comments on commit 1ee0fb0

Please sign in to comment.