chore: add logging for internal "new episode" route

This commit is contained in:
2024-09-10 22:41:40 -04:00
parent 47b58c34d8
commit b3738184c9

View File

@@ -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,