diff --git a/package.json b/package.json index 9cc340e..18e3895 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@merokudao/dapp-store-registry", - "version": "0.1.44", + "version": "0.1.45", "description": "The dApp Store registry for MerokuDAO dAapp Store", "repository": { "type": "git", diff --git a/src/lib/utils.ts b/src/lib/utils.ts index 465e312..0ece779 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -429,7 +429,7 @@ export const searchFilters = ( } }); - if (dappId) query.bool.must.push({ term: { id: dappId.trim() } }); + if (dappId) query.bool.must.push({ term: { dappId: dappId.trim() } }); // search on customer string if (!!search && search.length) { @@ -452,7 +452,7 @@ export const searchFilters = ( if (ownerAddress) query.bool.must.push({ match: { ownerAddress } }); - if (isListed && !searchById && !search) + if (isListed && !searchById && !search && !ownerAddress) query.bool.must.push({ match: { isListed: isListed === "true" ? true : false } }); diff --git a/src/lib/v1/registry.ts b/src/lib/v1/registry.ts index e537439..b0bc635 100644 --- a/src/lib/v1/registry.ts +++ b/src/lib/v1/registry.ts @@ -263,8 +263,7 @@ export class DappStoreRegistryV1 { ownerAddress: string ): Promise => { const { finalQuery } = searchFilters("", { - ownerAddress, - onlyByOwnerAddress: true + ownerAddress }); const result: SearchResult = await this.opensearchApis.search( searchRegistry.alias,