diff --git a/bun.lockb b/bun.lockb new file mode 100644 index 00000000..8858eb5f Binary files /dev/null and b/bun.lockb differ diff --git a/src/routes/anime/anix.ts b/src/routes/anime/anix.ts index 5be84abf..66f3c93b 100644 --- a/src/routes/anime/anix.ts +++ b/src/routes/anime/anix.ts @@ -67,7 +67,7 @@ const routes = async (fastify: FastifyInstance, options: RegisterOptions) => { '/watch/:id/:episodeId', async (request: FastifyRequest, reply: FastifyReply) => { const { id, episodeId } = request.params as { id: string; episodeId: string }; - const server = (request.query as { server: string }).server as StreamingServers; + const { server } = request.query as { server?: StreamingServers }; const type = (request.query as { type: string }).type ?? 'sub'; if (typeof id === 'undefined')