feat: improve error handling for authentication flow
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user