feat: add more 429 checks

This commit is contained in:
2024-10-05 15:52:38 -04:00
parent 24c0fa316c
commit 5ea90bda55
5 changed files with 46 additions and 2 deletions

View File

@@ -88,7 +88,7 @@ export async function getUpcomingTitlesFromAnilist(env: Env, req: HonoRequest) {
shouldContinue = pageInfo?.hasNextPage ?? false;
} while (shouldContinue);
await Promise.allSettled(
await Promise.all(
Array.from(plannedToWatchTitles).map((titleId) =>
maybeScheduleNextAiringEpisode(env, req, titleId),
),