diff --git a/server/Tingle.Dependabot/Workflow/UpdateRunner.cs b/server/Tingle.Dependabot/Workflow/UpdateRunner.cs index 8a988900..bec03032 100644 --- a/server/Tingle.Dependabot/Workflow/UpdateRunner.cs +++ b/server/Tingle.Dependabot/Workflow/UpdateRunner.cs @@ -149,7 +149,7 @@ public async Task DeleteAsync(UpdateJob job, CancellationToken cancellationToken var rr = await resource.GetContainerAppJobExecutionAsync(execution.Data.Name, cancellationToken); var properties = JsonNode.Parse(rr.GetRawResponse().Content.ToString())!.AsObject()["properties"]!; - //var status = execution.Data.Status.ToString() switch + //var status = execution.Data.Properties.Status.ToString() switch var status = properties["status"]!.GetValue() switch { "Succeeded" => UpdateJobStatus.Succeeded, @@ -169,8 +169,8 @@ public async Task DeleteAsync(UpdateJob job, CancellationToken cancellationToken } // get the period - //DateTimeOffset? start = execution.Data.StartOn, end = execution.Data.EndOn; - DateTimeOffset? start = properties["startTime"]!.GetValue(), end = properties["endTime"]!.GetValue(); + //DateTimeOffset? start = execution.Data.Properties.StartTime, end = execution.Data.Properties.EndTime; + DateTimeOffset? start = properties["startTime"]?.GetValue(), end = properties["endTime"]?.GetValue(); // create and return state return new UpdateRunnerState(status, start, end);