Skip to content

Commit

Permalink
Merge pull request #552 from Toasty360/patch-1
Browse files Browse the repository at this point in the history
Update anilist.ts
  • Loading branch information
Eltik authored Jan 28, 2024
2 parents 586424d + f800a5a commit abd1d9b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/routes/meta/anilist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,15 @@ const routes = async (fastify: FastifyInstance, options: RegisterOptions) => {
const weekEnd = (request.query as { weekEnd: number | string }).weekEnd;
const notYetAired = (request.query as { notYetAired: boolean }).notYetAired;

const anilist = generateAnilistMeta();
const anilist = generateAnilistMeta();
const _weekStart = Math.ceil(Date.now() / 1000);

const res = await anilist.fetchAiringSchedule(
page,
perPage,
weekStart,
weekEnd,
notYetAired,
page ?? 1,
perPage ?? 20,
weekStart ?? _weekStart,
weekEnd ?? _weekStart + 604800,
notYetAired ?? true,
);

reply.status(200).send(res);
Expand Down

0 comments on commit abd1d9b

Please sign in to comment.