backend
backend copied to clipboard
tokenReloadTokenPrices mutation is not working
error: Argument chain for where.tokenAddress_timestamp_chain.chain is missing.
{
"response": {
"data": { "tokenReloadTokenPrices": null },
"errors": [
{
"message": "Argument chain for where.tokenAddress_timestamp_chain.chain is missing.\n",
"locations": [{ "line": 2, "column": 3 }],
"path": ["tokenReloadTokenPrices"],
"extensions": {
"code": "INTERNAL_SERVER_ERROR",
"exception": { "clientVersion": "4.1.1" }
}
}
],
"status": 200,
"headers": {
"date": "Thu, 28 Mar 2024 17:06:56 GMT",
"content-type": "application/json; charset=utf-8",
"transfer-encoding": "chunked",
"connection": "keep-alive",
"etag": "W/\"126-5MJ+F3A56XR7Oel27GY3CJx/u30\"",
"vary": "accept-encoding",
"x-dns-prefetch-control": "off",
"x-frame-options": "SAMEORIGIN",
"strict-transport-security": "max-age=15552000; includeSubDomains",
"x-content-type-options": "nosniff",
"referrer-policy": "no-referrer",
"x-xss-protection": "0",
"access-control-allow-origin": "*",
"access-control-allow-methods": "POST, GET, HEAD, OPTIONS",
"access-control-allow-headers": "*",
"access-control-max-age": "600",
"access-control-expose-headers": "*",
"access-control-allow-credentials": "true",
"cache-control": "private, no-store",
"content-encoding": "br",
"x-download-options": "noopen",
"origin-agent-cluster": "?1",
"x-permitted-cross-domain-policies": "none",
"x-powered-by": "Stellate",
"x-cache": "MISS",
"gcdn-cache": "PASS",
"x-cache-hits": "0",
"x-served-by": "cache-mad22079-MAD",
"stellate-query-hash": "4691872906984411",
"cf-cache-status": "DYNAMIC",
"server": "cloudflare",
"cf-ray": "86b9369eb9592f80-MAD"
}
},
"request": {
"query": "\n mutation {\n tokenReloadTokenPrices(chains: [BASE])\n }\n",
"variables": {}
}
}
public async updateTokenPrices(chainIds: string[]) takes chain Ids because of the job, needs another entry point that takes GqlChain