diff --git a/apps/fg_http/lib/fg_http_web/controllers/device_controller.ex b/apps/fg_http/lib/fg_http_web/controllers/device_controller.ex index b07295ebc..8d4f146d2 100644 --- a/apps/fg_http/lib/fg_http_web/controllers/device_controller.ex +++ b/apps/fg_http/lib/fg_http_web/controllers/device_controller.ex @@ -19,7 +19,7 @@ defmodule FgHttpWeb.DeviceController do end def create(conn, %{"device" => %{"public_key" => _public_key} = device_params}) do - our_params = %{user_id: conn.assigns.current_user.id, name: "Default"} + our_params = %{"user_id" => conn.assigns.current_user.id, "name" => "Default"} all_params = Map.merge(device_params, our_params) case Devices.create_device(all_params) do