Skip to content

Commit

Permalink
nsfw
Browse files Browse the repository at this point in the history
  • Loading branch information
merasugd committed Jul 31, 2024
1 parent 7a02fcd commit 86a3e38
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/routes/meta/anilist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ const routes = async (fastify: FastifyInstance, options: RegisterOptions) => {
const res = await advSearch({
sort: ["TRENDING_DESC", "POPULARITY_DESC"],
page,
perPage
perPage,
isAdult: nsfw_default,
});

if(res.data && res.data.error) return reply.status(res.status).send(res.data);
Expand All @@ -133,7 +134,8 @@ const routes = async (fastify: FastifyInstance, options: RegisterOptions) => {
const res = await advSearch({
sort: ["POPULARITY_DESC"],
page,
perPage
perPage,
isAdult: nsfw_default,
});

if(res.data && res.data.error) return reply.status(res.status).send(res.data);
Expand Down

0 comments on commit 86a3e38

Please sign in to comment.