Skip to content

Commit

Permalink
Remove use of Task.InspectionTarget in backend
Browse files Browse the repository at this point in the history
  • Loading branch information
Eddasol committed Jan 30, 2024
1 parent 8172fd3 commit 4a7f132
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion backend/api/Services/MapService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,13 @@ public async Task AssignMapToMission(MissionRun missionRun)
var positions = new List<Position>();
foreach (var task in missionRun.Tasks)
{
positions.Add(task.InspectionTarget);
foreach (var inspection in task.Inspections)
{
if (inspection.InspectionTarget != null)
{
positions.Add(inspection.InspectionTarget);
}
}
}
try
{
Expand Down

0 comments on commit 4a7f132

Please sign in to comment.