Fix CLI client

This commit is contained in:
Hri7566 2024-03-08 21:20:04 -05:00
parent 015ecbd460
commit 6f201680d3
2 changed files with 4 additions and 2 deletions

View File

@ -1,7 +1,9 @@
import { Logger } from "@util/Logger"; import { Logger } from "@util/Logger";
import { createInterface, type ReadLine } from "readline"; import { createInterface, type ReadLine } from "readline";
import { EventEmitter } from "events"; 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 :/ // no typedefs :/
const cliMd = require("cli-markdown").default; const cliMd = require("cli-markdown").default;

View File

@ -10,7 +10,7 @@ export function gettRPC(token: string) {
// url: "http://localhost:3000", // url: "http://localhost:3000",
// headers() { // headers() {
// return { // return {
// Authorization: apiToken // Authorization: token
// }; // };
// } // }
// }), // }),