Skip to content

Commit 4b4e7f4

Browse files
winnerx0riimuru
andauthored
fix(anix): mismatched type (#661)
Co-authored-by: Marouane <57333995+riimuru@users.noreply.github.com>
1 parent 933c49c commit 4b4e7f4

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

bun.lockb

56 KB
Binary file not shown.

src/routes/anime/anix.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const routes = async (fastify: FastifyInstance, options: RegisterOptions) => {
6767
'/watch/:id/:episodeId',
6868
async (request: FastifyRequest, reply: FastifyReply) => {
6969
const { id, episodeId } = request.params as { id: string; episodeId: string };
70-
const server = (request.query as { server: string }).server as StreamingServers;
70+
const { server } = request.query as { server?: StreamingServers };
7171
const type = (request.query as { type: string }).type ?? 'sub';
7272

7373
if (typeof id === 'undefined')

0 commit comments

Comments
 (0)