Remove cache exchange
This commit is contained in:
@@ -8,7 +8,7 @@ import { config } from "#root/config.js";
|
|||||||
import { logger } from "#root/logger.js";
|
import { logger } from "#root/logger.js";
|
||||||
import { createServer, createServerManager } from "#root/server/index.js";
|
import { createServer, createServerManager } from "#root/server/index.js";
|
||||||
import { run } from "@grammyjs/runner";
|
import { run } from "@grammyjs/runner";
|
||||||
import { Client, cacheExchange, fetchExchange } from "@urql/core";
|
import { Client, fetchExchange } from "@urql/core";
|
||||||
|
|
||||||
async function startPolling(config: PollingConfig) {
|
async function startPolling(config: PollingConfig) {
|
||||||
const bot = createBot(config.botToken, {
|
const bot = createBot(config.botToken, {
|
||||||
@@ -116,7 +116,7 @@ function onShutdown(cleanUp: () => Promise<void>) {
|
|||||||
|
|
||||||
export const urql = new Client({
|
export const urql = new Client({
|
||||||
url: process.env.GRAPHQL_URL || "",
|
url: process.env.GRAPHQL_URL || "",
|
||||||
exchanges: [cacheExchange, fetchExchange],
|
exchanges: [fetchExchange],
|
||||||
fetchOptions: {
|
fetchOptions: {
|
||||||
headers: {
|
headers: {
|
||||||
"x-api-key": process.env?.GRAPHQL_API_TOKEN || ""
|
"x-api-key": process.env?.GRAPHQL_API_TOKEN || ""
|
||||||
|
|||||||
Reference in New Issue
Block a user