Files
channels-seerr/server
fallenbagel 95a9645019 fix(media-request-subscriber): prevent mediaId nullification from cascade saves
The mediaId FK on `media_request` rows was being set to NULL shortly after insert caused by
`mediaRepository.save(media)` being called with the requests relation loaded which in turn triggered
TypeORM's cascade reconciliation on all loaded request entities, corrupting the FK. This issue must
have even gotten worse when the saves were not being awaited in updateParentStatus which could have
caused race conditions between concurrent subscriber methods (updateParentStatus, sendToSonarr,
sendToRadarr) all firing from afterInsert.

fix #2315
2026-02-09 19:33:13 +08:00
..
2025-04-29 17:25:36 +02:00