[postgres-Server-V2] fix: Updated Job logic to spawn a job only if a job with the same id is not already in the RunningJobs list

This commit is contained in:
Alessandro Benetton
2025-01-12 15:33:27 +01:00
parent fc8d8b08da
commit dd1d67ac11
2 changed files with 34 additions and 28 deletions

View File

@ -21,8 +21,8 @@ public class Chapter : IComparable<Chapter>
public string ParentMangaId { get; internal set; }
public Manga? ParentManga { get; init; }
public Chapter(Manga parentManga, string url, string chapterNumberStruct, int? volumeNumber = null, string? title = null)
: this(parentManga.MangaId, url, chapterNumberStruct, volumeNumber, title)
public Chapter(Manga parentManga, string url, string chapterNumber, int? volumeNumber = null, string? title = null)
: this(parentManga.MangaId, url, chapterNumber, volumeNumber, title)
{
this.ParentManga = parentManga;
this.ArchiveFileName = BuildArchiveFileName();