fix: upcoming titles notifying about titles that are already airing
This commit is contained in:
@@ -69,7 +69,9 @@ export async function getUpcomingTitlesFromAnilist(env: Env) {
|
|||||||
scheduleList = scheduleList.concat(
|
scheduleList = scheduleList.concat(
|
||||||
airingSchedules!.filter(
|
airingSchedules!.filter(
|
||||||
(schedule): schedule is AiringSchedule =>
|
(schedule): schedule is AiringSchedule =>
|
||||||
!!schedule && schedule.media?.countryOfOrigin === "JP",
|
!!schedule &&
|
||||||
|
schedule.media?.countryOfOrigin === "JP" &&
|
||||||
|
schedule.episode == 1,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
shouldContinue = pageInfo?.hasNextPage ?? false;
|
shouldContinue = pageInfo?.hasNextPage ?? false;
|
||||||
|
|||||||
Reference in New Issue
Block a user