mirror of
https://github.com/oceanprotocol/market.git
synced 2024-11-15 01:34:57 +01:00
added fetchPolicy no-cache on graph requests from subgraph.ts util
This commit is contained in:
parent
3670993fd7
commit
5adf03c5f1
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user