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
1 changed files with 3 additions and 1 deletions

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()
}