fix(stats): preserve provider identities and artwork during linking

This commit is contained in:
2026-09-19 00:03:06 -07:00
parent 2b33d32879
commit c6059e340b
25 changed files with 926 additions and 267 deletions
@@ -106,6 +106,7 @@ export function registerStatsIntegrationRoutes(
) {
return c.body(null, 400);
}
if (!(await tracker.hasAnime(animeId))) return c.body(null, 404);
const tmdbClient = options?.tmdbClient;
if (!tmdbClient) return c.json(statsJson('error', { error: 'TMDB is not available' }), 503);
try {