mirror of
https://github.com/C9Glax/tranga.git
synced 2025-10-18 03:10:45 +02:00
Fix Actions that can have related chapters and manga
This commit is contained in:
@@ -4,7 +4,8 @@ using API.Schema.MangaContext;
|
||||
|
||||
namespace API.Schema.ActionsContext.Actions;
|
||||
|
||||
public sealed class LibraryMovedActionRecord(ActionsEnum action, DateTime performedAt, string mangaId, string fileLibraryId) : ActionWithMangaRecord(action, performedAt, mangaId)
|
||||
public sealed class LibraryMovedActionRecord(ActionsEnum action, DateTime performedAt, string mangaId, string fileLibraryId)
|
||||
: ActionRecord(action, performedAt), IActionWithMangaRecord
|
||||
{
|
||||
public LibraryMovedActionRecord(Manga manga, FileLibrary library) : this(ActionsEnum.LibraryMoved, DateTime.UtcNow, manga.Key, library.Key) { }
|
||||
|
||||
@@ -13,4 +14,6 @@ public sealed class LibraryMovedActionRecord(ActionsEnum action, DateTime perfor
|
||||
/// </summary>
|
||||
[StringLength(64)]
|
||||
public string FileLibraryId { get; init; } = fileLibraryId;
|
||||
|
||||
public string MangaId { get; init; } = mangaId;
|
||||
}
|
Reference in New Issue
Block a user