File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import jwt from "jsonwebtoken";
55import { readFileSync } from "fs" ;
66import { join } from "path" ;
77import consola from "consola" ;
8+ import type { FormData } from "undici" ;
89
910__dirname = process . cwd ( ) ;
1011export 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" ) ;
You can’t perform that action at this time.
0 commit comments