feat: store unreleased titles where first episode time is unknown

This commit is contained in:
2024-09-21 13:45:37 -04:00
parent c1bf12de4f
commit 755ae4b94f
7 changed files with 76 additions and 11 deletions

View File

@@ -22,9 +22,10 @@ app.post("/", async (c) => {
const titles = await getUpcomingTitlesFromAnilist(
env<Env, typeof c>(c, "workerd"),
c.req,
);
await Promise.all(
await Promise.allSettled(
titles.map(async (title) => {
const titleName =
title.media.title?.userPreferred ??