mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
handle no dids usecase in query (#818)
This commit is contained in:
parent
238fd2bbe3
commit
c6f4220f37
@ -24,10 +24,10 @@ async function getQueryHighest(
|
|||||||
const [dids, didsLength] = await getHighestLiquidityDIDs(chainIds)
|
const [dids, didsLength] = await getHighestLiquidityDIDs(chainIds)
|
||||||
const queryHighest = {
|
const queryHighest = {
|
||||||
page: 1,
|
page: 1,
|
||||||
offset: didsLength,
|
offset: didsLength > 0 ? didsLength : 1,
|
||||||
query: {
|
query: {
|
||||||
query_string: {
|
query_string: {
|
||||||
query: `(${dids}) AND (${transformChainIdsListToQuery(
|
query: `${dids && `(${dids}) AND`}(${transformChainIdsListToQuery(
|
||||||
chainIds
|
chainIds
|
||||||
)}) AND -isInPurgatory:true `,
|
)}) AND -isInPurgatory:true `,
|
||||||
fields: ['dataToken']
|
fields: ['dataToken']
|
||||||
|
Loading…
Reference in New Issue
Block a user