diff options
| author | Fuwn <[email protected]> | 2026-04-18 09:01:39 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-04-18 09:01:39 +0000 |
| commit | 0b0f846f68e7735e426523d5b8d1fc06e2392560 (patch) | |
| tree | d16e5e0760e37f9a64cbcb031132d631cad83017 /src/routes/api/updates | |
| parent | fix(cdn): preserve upstream headers alongside CORS and cache overrides (diff) | |
| download | due.moe-0b0f846f68e7735e426523d5b8d1fc06e2392560.tar.xz due.moe-0b0f846f68e7735e426523d5b8d1fc06e2392560.zip | |
fix(schedule): stop duplicating first page in season pagination
The seasonal schedule collector pushed page 1 outside the while-loop,
then re-pushed the current page on every loop iteration. That meant
every multi-page season duplicated its first page's media, and the
same bug ran a second time when includeLastSeason was set.
Restructure into a shared collectAllSchedulePages helper with a single
push-then-check-hasNextPage loop, so each page is pushed exactly once.
Verified against AniList for SPRING 2026 with includeLastSeason=true:
210 media, 0 duplicates.
Diffstat (limited to 'src/routes/api/updates')
0 files changed, 0 insertions, 0 deletions