2
0

Fixed taskId on init deserialization

This commit is contained in:
glax 2023-06-21 17:29:48 +02:00
parent fd1b2a8470
commit 9ed36c47b5

View File

@ -22,7 +22,7 @@ public abstract class TrangaTask
public DateTime lastExecuted { get; set; }
[Newtonsoft.Json.JsonIgnore] public ExecutionState state { get; set; }
public Task task { get; }
public string taskId { get; }
public string taskId { get; init; }
[Newtonsoft.Json.JsonIgnore] public TrangaTask? parentTask { get; set; }
public string? parentTaskId { get; set; }
[Newtonsoft.Json.JsonIgnore] protected HashSet<TrangaTask> childTasks { get; }