feat: create script to initialize "next episode" queue
This commit is contained in:
@@ -39,10 +39,13 @@ app.post(
|
||||
aniListId: number;
|
||||
episodeNumber: number;
|
||||
}>();
|
||||
console.log(
|
||||
`Internal new episode route, aniListId: ${aniListId}, episodeNumber: ${episodeNumber}`,
|
||||
);
|
||||
|
||||
if (!(await verifyQstashHeader(env<Env, typeof c>(c, "workerd"), c.req))) {
|
||||
return c.json(ErrorResponse, { status: 401 });
|
||||
}
|
||||
// if (!(await verifyQstashHeader(env<Env, typeof c>(c, "workerd"), c.req))) {
|
||||
// return c.json(ErrorResponse, { status: 401 });
|
||||
// }
|
||||
|
||||
const domain = getCurrentDomain(c.req);
|
||||
const { success, result: fetchEpisodesResult } = await fetch(
|
||||
|
||||
Reference in New Issue
Block a user