diff --git a/indexer/src/processing/entities.service.ts b/indexer/src/processing/entities.service.ts index 84683bb..c3a093f 100644 --- a/indexer/src/processing/entities.service.ts +++ b/indexer/src/processing/entities.service.ts @@ -23,7 +23,7 @@ export class EntitiesService { private readonly store: Store, ) {} - async getMarketplace(): Promise { + getMarketplace(): Marketplace { return this.storage.getMarketplace(); } diff --git a/indexer/src/processing/marketplace/admin-added.handler.ts b/indexer/src/processing/marketplace/admin-added.handler.ts index 0670162..2397e9d 100644 --- a/indexer/src/processing/marketplace/admin-added.handler.ts +++ b/indexer/src/processing/marketplace/admin-added.handler.ts @@ -11,7 +11,7 @@ export class AdminAddedHandler implements INftMarketplaceEventHandler { storage: EntitiesService, ): Promise { const { users } = event; - const marketplace = await storage.getMarketplace(); + const marketplace = storage.getMarketplace(); await storage.setMarketplace( new Marketplace({ ...marketplace, diff --git a/indexer/src/processing/marketplace/admins-deleted.handler.ts b/indexer/src/processing/marketplace/admins-deleted.handler.ts index 03339ca..e6abc86 100644 --- a/indexer/src/processing/marketplace/admins-deleted.handler.ts +++ b/indexer/src/processing/marketplace/admins-deleted.handler.ts @@ -11,7 +11,7 @@ export class AdminDeletedHandler implements INftMarketplaceEventHandler { storage: EntitiesService, ): Promise { const { user } = event; - const marketplace = await storage.getMarketplace(); + const marketplace = storage.getMarketplace(); await storage.setMarketplace( new Marketplace({ ...marketplace, diff --git a/indexer/src/processing/marketplace/new-collection-added.handler.ts b/indexer/src/processing/marketplace/new-collection-added.handler.ts index ef29f16..dedceec 100644 --- a/indexer/src/processing/marketplace/new-collection-added.handler.ts +++ b/indexer/src/processing/marketplace/new-collection-added.handler.ts @@ -25,6 +25,7 @@ export class NewCollectionAddedHandler implements INftMarketplaceEventHandler { type: typeName, metaUrl: metaLink, metaStr: '', + marketplace: storage.getMarketplace() }), ); }