feat: improve error handling for authentication flow

This commit is contained in:
2024-09-26 03:24:15 -04:00
parent 7a839cda5a
commit bee8acaca8
9 changed files with 143 additions and 47 deletions

View File

@@ -53,14 +53,10 @@ app.post(
);
}
const isAnifyEnabled = readEnvVariable<boolean>(
env<Env, typeof c>(c, "workerd"),
"ENABLE_ANIFY",
);
const { episodes, fetchUrlResult } = await fetchEpisodeUrlFromAllProviders(
aniListId,
episodeNumber,
isAnifyEnabled,
env<Env, typeof c>(c, "workerd"),
);
if (!episodes) {