1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

remove graphql query for accessDetails as it is return by aquarius (#1996)

* remove graphql query for accessDetails as it is return by aquarius

* increased size query on baseParams for algorithmDidList

* Remove console.logs

* Review changes

* Increased the size even more

---------

Co-authored-by: Ana Loznianu <ana@oceanprotocol.com>
This commit is contained in:
Enzo Vezzaro 2023-11-10 06:41:24 -04:00 committed by GitHub
parent 8c886e7e03
commit a2ce8e4ae2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -167,7 +167,10 @@ export function getQueryString(
const baseParams = { const baseParams = {
chainIds: [chainId], chainIds: [chainId],
sort: { sortBy: SortTermOptions.Created }, sort: { sortBy: SortTermOptions.Created },
filters: [getFilterTerm('metadata.type', 'algorithm')] filters: [getFilterTerm('metadata.type', 'algorithm')],
esPaginationOptions: {
size: 3000
}
} as BaseQueryParams } as BaseQueryParams
algorithmDidList?.length > 0 && algorithmDidList?.length > 0 &&
baseParams.filters.push(getFilterTerm('_id', algorithmDidList)) baseParams.filters.push(getFilterTerm('_id', algorithmDidList))
@ -200,7 +203,6 @@ export async function getAlgorithmsForAsset(
), ),
token token
) )
const algorithms: Asset[] = gueryResults?.results const algorithms: Asset[] = gueryResults?.results
return algorithms return algorithms
} }

View File

@ -241,6 +241,7 @@ export default function Compute({
asset.metadata.type asset.metadata.type
)[0] )[0]
) )
await setDatasetPrice(initializedProvider?.datasets?.[0]?.providerFee) await setDatasetPrice(initializedProvider?.datasets?.[0]?.providerFee)
setComputeStatusText( setComputeStatusText(
getComputeFeedback( getComputeFeedback(