diff --git a/indexer/src/processing/storage/local.storage.ts b/indexer/src/processing/storage/local.storage.ts index 5f74643..7afd696 100644 --- a/indexer/src/processing/storage/local.storage.ts +++ b/indexer/src/processing/storage/local.storage.ts @@ -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); } }