improve containers context

This commit is contained in:
2022-02-08 22:10:48 -05:00
parent 84f36db1d1
commit c27c162562
10 changed files with 97 additions and 65 deletions

View File

@ -28,7 +28,7 @@ defmodule CanneryWeb.ContainerLive.Show do
def handle_event("delete", _, socket) do
socket =
socket.assigns.container
|> Containers.delete_container()
|> Containers.delete_container(socket.assigns.current_user)
|> case do
{:ok, container} ->
socket