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

added fetchPolicy no-cache on graph requests from subgraph.ts util

This commit is contained in:
Bogdan Fazakas 2021-05-11 16:09:16 +03:00
parent 3670993fd7
commit 5adf03c5f1

View File

@ -75,7 +75,8 @@ async function fetchData(
const client = getApolloClientInstance()
const response = await client.query({
query: query,
variables: variables
variables: variables,
fetchPolicy: 'no-cache'
})
return response
} catch (error) {
@ -142,6 +143,7 @@ export async function getAssetPrices(assets: DDO[]): Promise<PriceList> {
}
export async function getPrice(asset: DDO): Promise<BestPrice> {
console.log('get price', asset)
const freVariables = {
datatoken: asset?.dataToken.toLowerCase()
}