chore: add logging for internal "new episode" route
This commit is contained in:
@@ -52,6 +52,7 @@ app.post(
|
||||
`${domain}/episodes/${aniListId}`,
|
||||
).then((res) => res.json<EpisodesResponseSchema>());
|
||||
if (!success) {
|
||||
console.error(`Failed to fetch episodes for title ${aniListId}`);
|
||||
await scheduleRetry(
|
||||
readEnvVariable(env<Env, typeof c>(c, "workerd"), "QSTASH_TOKEN"),
|
||||
c.req,
|
||||
@@ -85,6 +86,7 @@ app.post(
|
||||
},
|
||||
).then((res) => res.json<FetchUrlResponse>());
|
||||
if (!fetchUrlSuccess) {
|
||||
console.error(`Failed to fetch episode URL for episode ${episode.id}`);
|
||||
await scheduleRetry(
|
||||
readEnvVariable(env<Env, typeof c>(c, "workerd"), "QSTASH_TOKEN"),
|
||||
c.req,
|
||||
|
||||
Reference in New Issue
Block a user