diff --git a/API/Schema/Contexts/LibraryContext.cs b/API/Schema/Contexts/LibraryContext.cs index 2a1b6af..bbe9e3c 100644 --- a/API/Schema/Contexts/LibraryContext.cs +++ b/API/Schema/Contexts/LibraryContext.cs @@ -15,7 +15,6 @@ public class LibraryContext(DbContextOptions options) : DbContex { base.OnConfiguring(optionsBuilder); optionsBuilder.EnableSensitiveDataLogging(); - optionsBuilder.UseQueryTrackingBehavior(QueryTrackingBehavior.NoTrackingWithIdentityResolution); optionsBuilder.LogTo(s => { Log.Debug(s); diff --git a/API/Schema/Contexts/NotificationsContext.cs b/API/Schema/Contexts/NotificationsContext.cs index 1f40f2f..8fe9454 100644 --- a/API/Schema/Contexts/NotificationsContext.cs +++ b/API/Schema/Contexts/NotificationsContext.cs @@ -15,7 +15,6 @@ public class NotificationsContext(DbContextOptions options { base.OnConfiguring(optionsBuilder); optionsBuilder.EnableSensitiveDataLogging(); - optionsBuilder.UseQueryTrackingBehavior(QueryTrackingBehavior.NoTrackingWithIdentityResolution); optionsBuilder.LogTo(s => { Log.Debug(s); diff --git a/API/Schema/Contexts/PgsqlContext.cs b/API/Schema/Contexts/PgsqlContext.cs index 63a3d4c..8fc0b8a 100644 --- a/API/Schema/Contexts/PgsqlContext.cs +++ b/API/Schema/Contexts/PgsqlContext.cs @@ -21,7 +21,6 @@ public class PgsqlContext(DbContextOptions options) : DbContext(op { base.OnConfiguring(optionsBuilder); optionsBuilder.EnableSensitiveDataLogging(); - optionsBuilder.UseQueryTrackingBehavior(QueryTrackingBehavior.NoTrackingWithIdentityResolution); optionsBuilder.LogTo(s => { Log.Debug(s); diff --git a/API/Schema/Jobs/MoveMangaLibraryJob.cs b/API/Schema/Jobs/MoveMangaLibraryJob.cs index 18f5437..2d8b41d 100644 --- a/API/Schema/Jobs/MoveMangaLibraryJob.cs +++ b/API/Schema/Jobs/MoveMangaLibraryJob.cs @@ -42,7 +42,6 @@ public class MoveMangaLibraryJob : Job protected override IEnumerable RunInternal(PgsqlContext context) { - context.Entry(Manga).Collection(m => m.Chapters).Load(); context.Entry(Manga).Reference(m => m.Library).Load(); Dictionary oldPath = Manga.Chapters.ToDictionary(c => c, c => c.FullArchiveFilePath); Manga.Library = ToLibrary; diff --git a/API/Schema/Jobs/RetrieveChaptersJob.cs b/API/Schema/Jobs/RetrieveChaptersJob.cs index e020010..a542364 100644 --- a/API/Schema/Jobs/RetrieveChaptersJob.cs +++ b/API/Schema/Jobs/RetrieveChaptersJob.cs @@ -40,7 +40,6 @@ public class RetrieveChaptersJob : Job protected override IEnumerable RunInternal(PgsqlContext context) { - context.Entry(Manga).Collection(m => m.Chapters).Load(); // This gets all chapters that are not downloaded Chapter[] allChapters = Manga.MangaConnector.GetChapters(Manga, Language).DistinctBy(c => c.ChapterId).ToArray(); Chapter[] newChapters = allChapters.Where(chapter => Manga.Chapters.Select(c => c.ChapterId).Contains(chapter.ChapterId) == false).ToArray(); diff --git a/API/Schema/Jobs/UpdateChaptersDownloadedJob.cs b/API/Schema/Jobs/UpdateChaptersDownloadedJob.cs index b05d874..41228ea 100644 --- a/API/Schema/Jobs/UpdateChaptersDownloadedJob.cs +++ b/API/Schema/Jobs/UpdateChaptersDownloadedJob.cs @@ -36,7 +36,6 @@ public class UpdateChaptersDownloadedJob : Job protected override IEnumerable RunInternal(PgsqlContext context) { - context.Entry(Manga).Collection(m => m.Chapters).Load(); return Manga.Chapters.Select(c => new UpdateSingleChapterDownloadedJob(c, this)); } } \ No newline at end of file