diff --git a/src/cli/index.ts b/src/cli/index.ts index 1094a00..7f92293 100644 --- a/src/cli/index.ts +++ b/src/cli/index.ts @@ -1,7 +1,9 @@ import { Logger } from "@util/Logger"; import { createInterface, type ReadLine } from "readline"; import { EventEmitter } from "events"; -import trpc from "@util/api/trpc"; +import gettRPC from "@util/api/trpc"; + +const trpc = gettRPC(process.env.CLI_FISHING_TOKEN as string); // no typedefs :/ const cliMd = require("cli-markdown").default; diff --git a/src/util/api/trpc.ts b/src/util/api/trpc.ts index 48e645e..ca5df76 100644 --- a/src/util/api/trpc.ts +++ b/src/util/api/trpc.ts @@ -10,7 +10,7 @@ export function gettRPC(token: string) { // url: "http://localhost:3000", // headers() { // return { - // Authorization: apiToken + // Authorization: token // }; // } // }),