Fixed a bug where when deleting a chapter, if it's the last chapter left, it will now delete the Series as well.

This commit is contained in:
Joseph Milazzo 2025-05-01 16:50:57 -05:00
parent 4261b61f0f
commit 1d9084fe49
5 changed files with 29 additions and 4 deletions

View file

@ -79,6 +79,12 @@ public static class IncludesExtensions
.Include(c => c.ExternalReviews);
}
if (includes.HasFlag(ChapterIncludes.ExternalRatings))
{
queryable = queryable
.Include(c => c.ExternalRatings);
}
return queryable.AsSplitQuery();
}