Skip to content

Commit

Permalink
fix(anix): mismatched type (#661)
Browse files Browse the repository at this point in the history
Co-authored-by: Marouane <[email protected]>
  • Loading branch information
winnerezy and riimuru authored Jan 29, 2025
1 parent 933c49c commit 4b4e7f4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file added bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion src/routes/anime/anix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 4b4e7f4

Please sign in to comment.