Skip to content

Commit

Permalink
fix: adapter is not a function error (#622)
Browse files Browse the repository at this point in the history
  • Loading branch information
riimuru authored Jun 2, 2024
1 parent 08360b5 commit 03ee229
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/routes/meta/anilist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { StreamingServers } from '@consumet/extensions/dist/models';
import cache from '../../utils/cache';
import { redis } from '../../main';
import NineAnime from '@consumet/extensions/dist/providers/anime/9anime';
import Gogoanime from '@consumet/extensions/dist/providers/anime/gogoanime';

const routes = async (fastify: FastifyInstance, options: RegisterOptions) => {
fastify.get('/', (_, rp) => {
Expand Down Expand Up @@ -364,7 +365,8 @@ const generateAnilistMeta = (provider: string | undefined = undefined): Anilist
url: process.env.PROXY as string | string[],
});
} else {
return new Anilist(undefined, {
// default provider is gogoanime
return new Anilist(new Gogoanime(), {
url: process.env.PROXY as string | string[],
});
}
Expand Down

1 comment on commit 03ee229

@Siddhartha6909
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here is error when deploy on railway

Please sign in to comment.