From b128a292e1e8523b9fc6577d5dfd3c6e76c6b84d Mon Sep 17 00:00:00 2001 From: Eddasol Date: Thu, 28 Nov 2024 10:48:21 +0100 Subject: [PATCH] Fix estimated duration 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();