From e382ed8584cb9e44670bc348ed2e4e0a8e49d6b9 Mon Sep 17 00:00:00 2001 From: Jamil Bou Kheir Date: Tue, 19 May 2020 20:34:03 -0700 Subject: [PATCH] fix keys --- apps/fg_http/lib/fg_http_web/controllers/device_controller.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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