mirror of
https://github.com/C9Glax/tranga.git
synced 2025-02-23 15:50:13 +01:00
Fixed GetJobsLike, for empty publication, but existing chapter
This commit is contained in:
parent
44f8d369c3
commit
22c4c0eb2c
@ -101,7 +101,10 @@ public class JobBoss : GlobalBase
|
|||||||
public IEnumerable<Job> GetJobsLike(MangaConnector? mangaConnector = null, Manga? publication = null,
|
public IEnumerable<Job> GetJobsLike(MangaConnector? mangaConnector = null, Manga? publication = null,
|
||||||
Chapter? chapter = null)
|
Chapter? chapter = null)
|
||||||
{
|
{
|
||||||
return GetJobsLike(mangaConnector?.name, publication?.internalId, chapter?.chapterNumber);
|
if (chapter is not null)
|
||||||
|
return GetJobsLike(mangaConnector?.name, chapter.Value.parentManga.internalId, chapter?.chapterNumber);
|
||||||
|
else
|
||||||
|
return GetJobsLike(mangaConnector?.name, publication?.internalId);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Job? GetJobById(string jobId)
|
public Job? GetJobById(string jobId)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user