neiam
/apollos_crib
It's Apollo's Crib
public · Issues · Pulls 1 · Labels · Forks · Compare · Actions failure · Badges · Packages
⭐
Log in to mark this repository.
slightly.different.
2c7620f · gmorell · 2024-02-04 23:00
Files changed
modified
apps/room_sanctum/lib/room_sanctum_web/live/cfg_query_live/form_component.ex
+1
−3
@@ -73,7 +73,6 @@ defmodule RoomSanctumWeb.QueryLive.FormComponent do
| 73 | 73 | changeset = |
| 74 | 74 | socket.assigns.query |
| 75 | 75 | |> Configuration.change_query(%{"query" => %{"stop" => stop, "__type__" => type}, "__type__" => type}) |
| 76 | −# |> Ecto.Changeset.change(%{query: %{stop: stop, __type__: type}}) | |
| 77 | 76 | |> Map.put(:action, :validate) |
| 78 | 77 | |> IO.inspect |
| 79 | 78 | IO.inspect(changeset.data) |
@@ -84,8 +83,7 @@ defmodule RoomSanctumWeb.QueryLive.FormComponent do
| 84 | 83 | IO.inspect(socket.assigns.query) |
| 85 | 84 | changeset = |
| 86 | 85 | socket.assigns.query |
| 87 | − |> Configuration.change_query(%{"query" => %{"stop" => stop, "__type__" => type}, "__type__" => type}) | |
| 88 | − # |> Ecto.Changeset.change(%{query: %{stop: stop, __type__: type}}) | |
| 86 | + |> Configuration.change_query(%{"query" => %{"stop_id" => stop, "__type__" => type}, "__type__" => type}) | |
| 89 | 87 | |> Map.put(:action, :validate) |
| 90 | 88 | |> IO.inspect |
| 91 | 89 | IO.inspect(changeset.data) |
Parents: 232a430