mirror of
https://github.com/C9Glax/tranga.git
synced 2025-09-10 20:08:19 +02:00
Fix Merge of Chapters
This commit is contained in:
@@ -205,6 +205,10 @@ public static class Tranga
|
|||||||
MangaConnectorId<Chapter> chId = context.MangaConnectorToChapter.Find(addChId.Key) ?? addChId;
|
MangaConnectorId<Chapter> chId = context.MangaConnectorToChapter.Find(addChId.Key) ?? addChId;
|
||||||
chId.Obj = chapter;
|
chId.Obj = chapter;
|
||||||
|
|
||||||
|
foreach (CollectionEntry collectionEntry in context.Entry(chapter).Collections)
|
||||||
|
collectionEntry.Load();
|
||||||
|
context.Entry(chapter).Navigation(nameof(Chapter.ParentManga)).Load();
|
||||||
|
|
||||||
if(context.MangaConnectorToChapter.Find(chId.Key) is null)
|
if(context.MangaConnectorToChapter.Find(chId.Key) is null)
|
||||||
context.MangaConnectorToChapter.Add(chId);
|
context.MangaConnectorToChapter.Add(chId);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user