From 67a70172cf625f71b5b1c9e4b3b79b4173157279 Mon Sep 17 00:00:00 2001 From: Eddasol Date: Thu, 28 Nov 2024 10:48:21 +0100 Subject: [PATCH] Fix estimated durations always being null --- backend/api/Services/ActionServices/TaskDurationService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/api/Services/ActionServices/TaskDurationService.cs b/backend/api/Services/ActionServices/TaskDurationService.cs index 019b126ed..fca6e0afc 100644 --- a/backend/api/Services/ActionServices/TaskDurationService.cs +++ b/backend/api/Services/ActionServices/TaskDurationService.cs @@ -58,7 +58,7 @@ private async Task UpdateAverageDuration(List recentMissionRunsForMo .Select( task => (task.EndTime! - task.StartTime!).Value.TotalSeconds - - task.Inspection?.VideoDuration ?? 0 + - (task.Inspection?.VideoDuration ?? 0) ) ) .ToList();