mirror of
https://github.com/C9Glax/tranga.git
synced 2025-07-04 01:44:17 +02:00
Removed DELETE Jobs/DownloadChapter and Jobs/MonitorManga. Can both be reached with DELETE Jobs (jobId)
Added POST Jobs/Cancel CancelJob and RemoveJob cancels/removes subJobs
This commit is contained in:
@ -51,6 +51,8 @@ public class JobBoss : GlobalBase
|
||||
Log($"Removing {job}");
|
||||
job.Cancel();
|
||||
this.jobs.Remove(job);
|
||||
if(job.subJobs is not null)
|
||||
RemoveJobs(job.subJobs);
|
||||
}
|
||||
|
||||
public void RemoveJobs(IEnumerable<Job> jobsToRemove)
|
||||
|
Reference in New Issue
Block a user