Skip to content

Commit

Permalink
Accept null as area for echo missions
Browse files Browse the repository at this point in the history
  • Loading branch information
aeshub committed Sep 6, 2023
1 parent 8c83680 commit af12978
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions backend/api/Controllers/MissionController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -404,10 +404,6 @@ [FromBody] ScheduledMissionQuery scheduledMissionQuery
if (scheduledMissionQuery.AreaName != null)
{
area = await _areaService.ReadByInstallationAndName(scheduledMissionQuery.InstallationCode, scheduledMissionQuery.AreaName);
if (area == null)
{
return NotFound($"Could not find area by installation '{scheduledMissionQuery.InstallationCode}' and name '{scheduledMissionQuery.AreaName}'");
}
}

var source = await _sourceService.CheckForExistingEchoSource(scheduledMissionQuery.EchoMissionId);
Expand Down

0 comments on commit af12978

Please sign in to comment.