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,12 +24,12 @@ async function getQueryHighest(
|
||||
const [dids, didsLength] = await getHighestLiquidityDIDs(chainIds)
|
||||
const queryHighest = {
|
||||
page: 1,
|
||||
offset: didsLength,
|
||||
offset: didsLength > 0 ? didsLength : 1,
|
||||
query: {
|
||||
query_string: {
|
||||
query: `(${dids}) AND (${transformChainIdsListToQuery(
|
||||
query: `${dids && `(${dids}) AND`}(${transformChainIdsListToQuery(
|
||||
chainIds
|
||||
)}) AND -isInPurgatory:true`,
|
||||
)}) AND -isInPurgatory:true `,
|
||||
fields: ['dataToken']
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user