Skip to content

Commit 4d6cc58

Browse files
committed
fix: tsc types error
1 parent 6997df1 commit 4d6cc58

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/core/Web.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ export async function Web(base: Base) {
7979
Bun.serve({
8080
fetch: app.fetch,
8181
port: base.config.web.port,
82-
// @ts-expect-error probably a bug in the types
8382
tls: {
8483
key,
8584
cert
@@ -89,7 +88,6 @@ export async function Web(base: Base) {
8988
Bun.serve({
9089
fetch: app.fetch,
9190
port: base.config.webFrontend.port,
92-
// @ts-expect-error probably a bug in the types
9391
tls: {
9492
key: keyPem,
9593
cert: certPem

src/web/routes/player.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import jwt from "jsonwebtoken";
55
import { readFileSync } from "fs";
66
import { join } from "path";
77
import consola from "consola";
8+
import type { FormData } from "undici";
89

910
__dirname = process.cwd();
1011
export class PlayerRoute {
@@ -67,7 +68,7 @@ export class PlayerRoute {
6768

6869
this.app.post("/growid/checktoken", async (ctx) => {
6970
try {
70-
const formData = await ctx.req.formData();
71+
const formData = await ctx.req.formData() as FormData;
7172
const refreshToken = formData.get("refreshToken") as string;
7273

7374
if (!refreshToken) throw new Error("Unauthorized");

0 commit comments

Comments
 (0)