mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-05-24 08:32:29 -04:00
New Scanner + People Pages (#3286)
Co-authored-by: Robbie Davis <robbie@therobbiedavis.com>
This commit is contained in:
@@ -142,4 +142,17 @@ public class ChapterBuilder : IEntityBuilder<Chapter>
|
||||
_chapter.CreatedUtc = created.ToUniversalTime();
|
||||
return this;
|
||||
}
|
||||
|
||||
public ChapterBuilder WithPerson(Person person, PersonRole role)
|
||||
{
|
||||
_chapter.People ??= new List<ChapterPeople>();
|
||||
_chapter.People.Add(new ChapterPeople()
|
||||
{
|
||||
Person = person,
|
||||
Role = role,
|
||||
Chapter = _chapter,
|
||||
});
|
||||
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user