mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 05:13:18 -07:00
Fix #3315
This commit is contained in:
parent
d08b68ec25
commit
e883fe7030
1 changed files with 3 additions and 3 deletions
|
@ -49,13 +49,13 @@ namespace Ombi.Schedule.Jobs.Plex
|
||||||
|
|
||||||
private Task ProcessTv()
|
private Task ProcessTv()
|
||||||
{
|
{
|
||||||
var tv = _tvRepo.GetChild().Where(x => !x.Available);
|
var tv = _tvRepo.GetChild().Where(x => !x.Available).AsNoTracking();
|
||||||
return ProcessTv(tv);
|
return ProcessTv(tv);
|
||||||
}
|
}
|
||||||
|
|
||||||
private async Task ProcessTv(IQueryable<ChildRequests> tv)
|
private async Task ProcessTv(IQueryable<ChildRequests> tv)
|
||||||
{
|
{
|
||||||
var plexEpisodes = _repo.GetAllEpisodes().Include(x => x.Series);
|
var plexEpisodes = _repo.GetAllEpisodes().Include(x => x.Series).AsNoTracking();
|
||||||
|
|
||||||
foreach (var child in tv)
|
foreach (var child in tv)
|
||||||
{
|
{
|
||||||
|
@ -151,7 +151,7 @@ namespace Ombi.Schedule.Jobs.Plex
|
||||||
private async Task ProcessMovies()
|
private async Task ProcessMovies()
|
||||||
{
|
{
|
||||||
// Get all non available
|
// Get all non available
|
||||||
var movies = _movieRepo.GetAll().Include(x => x.RequestedUser).Where(x => !x.Available);
|
var movies = _movieRepo.GetAll().Include(x => x.RequestedUser).Where(x => !x.Available).AsNoTracking();
|
||||||
var itemsForAvailbility = new List<AvailabilityModel>();
|
var itemsForAvailbility = new List<AvailabilityModel>();
|
||||||
|
|
||||||
foreach (var movie in movies)
|
foreach (var movie in movies)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue