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

View File

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