mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 12:02:35 +02:00
LazyLoaded Series and Episode again for history
This commit is contained in:
parent
17e99958e1
commit
68f93dbb10
@ -65,8 +65,8 @@ private Response GetHistory()
|
||||
{
|
||||
Id = 1,
|
||||
Date = DateTime.UtcNow.AddHours(-5),
|
||||
Episode = episode,
|
||||
Series = series,
|
||||
// Episode = episode,
|
||||
// Series = series,
|
||||
Indexer = "nzbs.org",
|
||||
Quality = new QualityModel(Quality.HDTV720p)
|
||||
}
|
||||
|
@ -38,10 +38,10 @@ public static void Map()
|
||||
|
||||
Mapper.Entity<SceneMapping>().RegisterModel("SceneMappings");
|
||||
|
||||
Mapper.Entity<History.History>().RegisterModel("History");
|
||||
// .Relationship()
|
||||
// .HasOne(h => h.Episode, h => h.EpisodeId)
|
||||
// .HasOne(h => h.Series, h => h.SeriesId);
|
||||
Mapper.Entity<History.History>().RegisterModel("History")
|
||||
.Relationship()
|
||||
.HasOne(h => h.Episode, h => h.EpisodeId)
|
||||
.HasOne(h => h.Series, h => h.SeriesId);
|
||||
|
||||
Mapper.Entity<Series>().RegisterModel("Series")
|
||||
.Ignore(s => s.Path)
|
||||
|
@ -17,7 +17,7 @@ public class History : ModelBase
|
||||
public string NzbInfoUrl { get; set; }
|
||||
public string ReleaseGroup { get; set; }
|
||||
|
||||
public Episode Episode { get; set; }
|
||||
public Series Series { get; set; }
|
||||
public LazyLoaded<Episode> Episode { get; set; }
|
||||
public LazyLoaded<Series> Series { get; set; }
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user