ParentJob can be updated, DownloadAvailableJobs Endpoint automatically sets ParentJob to the DownloadAvailableChaptersJob (ondeleteCascade)

This commit is contained in:
2025-05-17 19:24:24 +02:00
parent b3efcf19d9
commit 496b49ccb3
2 changed files with 4 additions and 2 deletions

View File

@ -15,8 +15,8 @@ public abstract class Job
[Required]
public string JobId { get; init; }
[StringLength(64)] public string? ParentJobId { get; init; }
[JsonIgnore] public Job? ParentJob { get; init; }
[StringLength(64)] public string? ParentJobId { get; private set; }
[JsonIgnore] public Job? ParentJob { get; internal set; }
private ICollection<Job> _dependsOnJobs = null!;
[JsonIgnore] public ICollection<Job> DependsOnJobs
{