diff --git a/src/Collection/Collection.service.ts b/src/Collection/Collection.service.ts index 5a4fbafa..6144ccb9 100644 --- a/src/Collection/Collection.service.ts +++ b/src/Collection/Collection.service.ts @@ -625,13 +625,13 @@ export class CollectionService { if (remoteCollections.length > 0) { // Create a map of remote collections for fast lookup const remoteCollectionMap = Object.fromEntries( - remoteCollections.map(({ id, creator, managers }) => [ + remoteCollections.map(({ id, creator, managers, minters }) => [ id, - { creator, managers }, + { creator, managers, minters }, ]) ) - // If exists the remote collection, filter by the creator field or the managers field + // If exists the remote collection, filter by the creator field or the managers field or the minters field allCollections = allCollections.filter( ({ contract_address }) => !remoteCollectionMap[contract_address!] || @@ -639,6 +639,9 @@ export class CollectionService { params.address! || remoteCollectionMap[contract_address!].managers.includes( params.address! + ) || + remoteCollectionMap[contract_address!].minters.includes( + params.address! ) ) }