Skip to content

Commit

Permalink
Remove InspectionTarget from MissionSchedullingController
Browse files Browse the repository at this point in the history
  • Loading branch information
MuhammadUsama-afk-equinor authored and Afonso-2403 committed Feb 9, 2024
1 parent f3b20eb commit 789d012
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/api/Controllers/MissionSchedulingController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion backend/api/Services/MissionDefinitionService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public async Task<MissionDefinition> Update(MissionDefinition missionDefinition)
var tagPosition = stidService
.GetTagPosition(t.TagId, installationCode)
.Result;
return new MissionTask(t, tagPosition);
return new MissionTask(t);
}
)
.ToList(),
Expand Down
2 changes: 1 addition & 1 deletion backend/api/Services/SourceService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ private DbSet<Source> 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:
Expand Down

0 comments on commit 789d012

Please sign in to comment.