Skip to content

Commit

Permalink
fix add new collection type
Browse files Browse the repository at this point in the history
  • Loading branch information
ElessarST committed Feb 7, 2024
1 parent 6e5b5f5 commit 66e68f5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion indexer/src/processing/entities.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class EntitiesService {
private readonly store: Store,
) {}

async getMarketplace(): Promise<Marketplace> {
getMarketplace(): Marketplace {
return this.storage.getMarketplace();
}

Expand Down
2 changes: 1 addition & 1 deletion indexer/src/processing/marketplace/admin-added.handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class AdminAddedHandler implements INftMarketplaceEventHandler {
storage: EntitiesService,
): Promise<void> {
const { users } = event;
const marketplace = await storage.getMarketplace();
const marketplace = storage.getMarketplace();
await storage.setMarketplace(
new Marketplace({
...marketplace,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class AdminDeletedHandler implements INftMarketplaceEventHandler {
storage: EntitiesService,
): Promise<void> {
const { user } = event;
const marketplace = await storage.getMarketplace();
const marketplace = storage.getMarketplace();
await storage.setMarketplace(
new Marketplace({
...marketplace,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export class NewCollectionAddedHandler implements INftMarketplaceEventHandler {
type: typeName,
metaUrl: metaLink,
metaStr: '',
marketplace: storage.getMarketplace()
}),
);
}
Expand Down

0 comments on commit 66e68f5

Please sign in to comment.