seerr/server
fallenbagel beba2ea099
fix(mediarequest): explicitly set mediaId when creating request (#2316)
* fix(mediarequest): explicitly set mediaId when creating

Intermittent issue where media_request records were created with mediaId = NULL,causing TypeError
when accessing request.media.tmdbId on the profile page. TypeORM's implicit relation-to-foreign-key
mapping was failing intermittently. This sets the mediaId column explicitly and adds a guard to
check to fail fast if media.id is not populated after save.

fix #2315

* refactor: better logging when media id not found
2026-01-23 14:32:46 +05:00
..
api fix(sonarr): re-monitor episodes when re-requesting deleted but monitored seasons (#2312) 2026-01-20 18:34:21 +01:00
constants chore: merge upstream (#1592) 2025-04-29 17:25:36 +02:00
entity fix(mediarequest): explicitly set mediaId when creating request (#2316) 2026-01-23 14:32:46 +05:00
interfaces/api fix(dnscaching): display stats for DNS caching (#1858) 2025-08-20 17:32:59 +08:00
job fix(blacklist): handle invalid keywords gracefully (#1815) 2025-08-01 11:03:22 +02:00
lib fix(base-scanner): fix PROCESSING status persisting for unmonitored seasons (#2311) 2026-01-18 22:32:57 +05:00
middleware perf(imageproxy): do not set cookies to image proxy so CDNs can cache images (#3332) 2023-02-12 20:05:29 +09:00
migration fix(migration): add cleanup step for duplicate push subscriptions before enforcing unique constraint (#2269) 2026-01-05 10:54:31 +01:00
models feat: add tvdb indexer (#899) 2025-09-02 22:40:47 +02:00
repositories feat(add watchlist): adding midding functionality from overserr 2023-04-27 22:27:23 +07:00
routes fix(webpush): improve iOS push subscription endpoint cleanup (#2140) 2025-12-31 13:44:45 +01:00
scripts feat: view other users' watchlists (#2959) 2022-08-22 05:50:27 +00:00
subscriber fix(servarr): replace spaces in arr user tags with - (#2231) 2026-01-06 03:18:06 +08:00
templates/email feat(notifications): make embedded posters optional (#1364) 2025-09-08 14:11:31 +02:00
types fix(tvdb): respect display language when fetching metadata (#1889) 2025-09-08 20:20:21 +08:00
utils fix(proxy): configure proxy agent connection limits and IPv4 support (#2303) 2026-01-20 12:37:41 +01:00
datasource.ts feat: Overseerr to Jellyseerr migration (#2019) 2025-10-30 19:57:50 +01:00
index.ts fix(proxy): configure proxy agent connection limits and IPv4 support (#2303) 2026-01-20 12:37:41 +01:00
logger.ts feat: Overseerr to Jellyseerr migration (#2019) 2025-10-30 19:57:50 +01:00
tsconfig.json refactor: update Next.js, React.js and Node.js (#815) 2024-06-23 23:43:54 +02:00