fix: titles sync not working
This commit is contained in:
@@ -129,15 +129,11 @@ app.openapi(route, async (c) => {
|
|||||||
let hasNextPage = true;
|
let hasNextPage = true;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
const stub = env.ANILIST_DO.getByName(user.name!);
|
const { mediaList, pageInfo } = await getWatchingTitles(
|
||||||
const { mediaList, pageInfo } = await stub
|
|
||||||
.getTitles(
|
|
||||||
user.name!,
|
user.name!,
|
||||||
currentPage++,
|
currentPage++,
|
||||||
["CURRENT", "PLANNING", "PAUSED", "REPEATING"],
|
|
||||||
aniListToken,
|
aniListToken,
|
||||||
)
|
).then((data) => data!);
|
||||||
.then((data) => data!);
|
|
||||||
if (!mediaList) {
|
if (!mediaList) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,8 +12,6 @@ import {
|
|||||||
} from "~/libs/tasks/queueTask";
|
} from "~/libs/tasks/queueTask";
|
||||||
import { maybeUpdateLastConnectedAt } from "~/middleware/maybeUpdateLastConnectedAt";
|
import { maybeUpdateLastConnectedAt } from "~/middleware/maybeUpdateLastConnectedAt";
|
||||||
|
|
||||||
import { checkUpcomingTitles } from "./controllers/internal/upcoming-titles";
|
|
||||||
|
|
||||||
export const app = new OpenAPIHono<{ Bindings: Env }>();
|
export const app = new OpenAPIHono<{ Bindings: Env }>();
|
||||||
|
|
||||||
app.use(maybeUpdateLastConnectedAt);
|
app.use(maybeUpdateLastConnectedAt);
|
||||||
|
|||||||
Reference in New Issue
Block a user