diff --git a/backend/api/Controllers/MissionSchedulingController.cs b/backend/api/Controllers/MissionSchedulingController.cs index 4822bb6aa..47ed547fa 100644 --- a/backend/api/Controllers/MissionSchedulingController.cs +++ b/backend/api/Controllers/MissionSchedulingController.cs @@ -250,7 +250,7 @@ [FromBody] ScheduledMissionQuery scheduledMissionQuery .SelectMany( t => { - return t.Inspections.Select(i => new MissionTask(t, i.InspectionPoint)).ToList(); + return t.Inspections.Select(i => new MissionTask(t)).ToList(); } ) .ToList(); diff --git a/backend/api/Services/MissionDefinitionService.cs b/backend/api/Services/MissionDefinitionService.cs index 52bb93c64..34c63665a 100644 --- a/backend/api/Services/MissionDefinitionService.cs +++ b/backend/api/Services/MissionDefinitionService.cs @@ -140,7 +140,7 @@ public async Task Update(MissionDefinition missionDefinition) var tagPosition = stidService .GetTagPosition(t.TagId, installationCode) .Result; - return new MissionTask(t, tagPosition); + return new MissionTask(t); } ) .ToList(), diff --git a/backend/api/Services/SourceService.cs b/backend/api/Services/SourceService.cs index 3f75312d3..ac9ebd579 100644 --- a/backend/api/Services/SourceService.cs +++ b/backend/api/Services/SourceService.cs @@ -89,7 +89,7 @@ private DbSet GetSources() var tagPosition = stidService .GetTagPosition(t.TagId, installationCode) .Result; - return new MissionTask(t, tagPosition); + return new MissionTask(t); }).ToList(); return new SourceResponse(source, tasks); default: