From 698d1386425ed62c4b14346227fea185b32b8244 Mon Sep 17 00:00:00 2001 From: Glax Date: Sat, 17 May 2025 23:30:28 +0200 Subject: [PATCH] Load ParentManga.Library for Chapter --- API/Schema/Jobs/DownloadSingleChapterJob.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/API/Schema/Jobs/DownloadSingleChapterJob.cs b/API/Schema/Jobs/DownloadSingleChapterJob.cs index e88a01b..65b4222 100644 --- a/API/Schema/Jobs/DownloadSingleChapterJob.cs +++ b/API/Schema/Jobs/DownloadSingleChapterJob.cs @@ -51,6 +51,7 @@ public class DownloadSingleChapterJob : Job Log.Info($"No imageUrls for chapter {ChapterId}"); return []; } + context.Entry(Chapter.ParentManga).Reference(m => m.Library).Load(); //Need to explicitly load, because we are not accessing navigation directly... string saveArchiveFilePath = Chapter.FullArchiveFilePath; Log.Debug($"Chapter path: {saveArchiveFilePath}");