feat: set up mock data to be used to generate baseline profiles

This commit is contained in:
2025-12-06 07:27:14 -05:00
parent 9d71199943
commit ad26cd6da3
9 changed files with 239 additions and 62 deletions

View File

@@ -92,6 +92,13 @@ app.openapi(route, async (c) => {
} = await c.req.json<typeof UpdateWatchStatusRequest._type>();
const aniListToken = c.req.header("X-AniList-Token");
// Check if we should use mock data
const { useMockData } = await import("~/libs/useMockData");
if (useMockData()) {
// Return success immediately without side effects
return c.json(SuccessResponse, { status: 200 });
}
if (!isRetrying) {
try {
await updateWatchStatus(c.req, deviceId, titleId, watchStatus);