feat: schedule next airing episode

happens when new title is saved, or when new episode internal route is run successfully
This commit is contained in:
2024-09-09 03:53:34 -05:00
parent 38195776c2
commit 336701a84b
14 changed files with 353 additions and 19 deletions

View File

@@ -4,7 +4,6 @@ import { updateDeviceLastConnectedAt } from "~/models/token";
export const maybeUpdateLastConnectedAt = createMiddleware(async (c, next) => {
const deviceId = await c.req.header("X-Aniplay-Device-Id");
console.log("deviceId", deviceId);
if (!deviceId) {
return next();
}