diff --git a/lib/microwaveprop/rover_planning.ex b/lib/microwaveprop/rover_planning.ex index ebb626f4..6d971dd8 100644 --- a/lib/microwaveprop/rover_planning.ex +++ b/lib/microwaveprop/rover_planning.ex @@ -124,7 +124,7 @@ defmodule Microwaveprop.RoverPlanning do @doc "Fetches a single path by id or raises Ecto.NoResultsError." @spec get_path!(Ecto.UUID.t()) :: Path.t() - def get_path!(id), do: id |> Repo.get!(Path) |> Repo.preload([:rover_location, :station, :mission]) + def get_path!(id), do: Path |> Repo.get!(id) |> Repo.preload([:rover_location, :station, :mission]) @doc """ Reconciles the path matrix for a mission against the current set of