Fix user/deepl_account relation

This commit is contained in:
Thelonius Kort
2023-01-09 21:09:46 +01:00
parent 6faf1e02f5
commit 54250a5a95
4 changed files with 6 additions and 5 deletions

View File

@ -23,7 +23,7 @@ defmodule OutlookWeb.DeeplAccountLive.Index do
defp apply_action(socket, :new, _params) do
socket
|> assign(:page_title, "New Deepl account")
|> assign(:deepl_account, %DeeplAccount{})
|> assign(:deepl_account, %DeeplAccount{user_id: socket.assigns.current_user})
end
defp apply_action(socket, :index, _params) do