mirror of
https://github.com/seerr-team/seerr.git
synced 2026-04-18 22:38:17 -04:00
chore: added some more debug sanity checks
This commit is contained in:
@@ -1108,6 +1108,14 @@ export class MediaRequest {
|
||||
sonarr
|
||||
.addSeries(sonarrSeriesOptions)
|
||||
.then(async (sonarrSeries) => {
|
||||
const reqCheck1 = await getRepository(MediaRequest).find({
|
||||
where: { media: { id: this.media.id } },
|
||||
});
|
||||
logger.debug(
|
||||
`Before running the find the DB claims we have ${
|
||||
reqCheck1?.length ?? 0
|
||||
} relations`
|
||||
);
|
||||
// We grab media again here to make sure we have the latest version of it
|
||||
const media = await mediaRepository.findOne({
|
||||
where: { id: this.media.id },
|
||||
|
||||
Reference in New Issue
Block a user