diff --git a/Tranga/TrangaTask.cs b/Tranga/TrangaTask.cs index 0f01fa8..6f0f39a 100644 --- a/Tranga/TrangaTask.cs +++ b/Tranga/TrangaTask.cs @@ -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 childTasks { get; }