mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-07 05:24:40 +08:00
mix format
This commit is contained in:
parent
a8e085037e
commit
33ab1b8ca1
3 changed files with 3 additions and 2 deletions
|
@ -305,7 +305,6 @@ defmodule Livebook.Teams.Requests do
|
||||||
|
|
||||||
defp transform_response({request, response}) do
|
defp transform_response({request, response}) do
|
||||||
case {request, response} do
|
case {request, response} do
|
||||||
|
|
||||||
{request, %{status: 400, body: %{"errors" => %{"detail" => error}}}}
|
{request, %{status: 400, body: %{"errors" => %{"detail" => error}}}}
|
||||||
when request.private.deploy ->
|
when request.private.deploy ->
|
||||||
{request, %{response | status: 422, body: %{"errors" => %{"file" => [error]}}}}
|
{request, %{response | status: 422, body: %{"errors" => %{"file" => [error]}}}}
|
||||||
|
|
|
@ -397,7 +397,8 @@ defmodule LivebookWeb.AppSessionLive do
|
||||||
Livebook.Apps.authorized?(app, socket.assigns.current_user) do
|
Livebook.Apps.authorized?(app, socket.assigns.current_user) do
|
||||||
{:noreply, socket}
|
{:noreply, socket}
|
||||||
else
|
else
|
||||||
{:noreply, push_navigate(socket, to: ~p"/apps/#{slug}/sessions/#{socket.assigns.session.id}")}
|
{:noreply,
|
||||||
|
push_navigate(socket, to: ~p"/apps/#{slug}/sessions/#{socket.assigns.session.id}")}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -96,6 +96,7 @@ defmodule LivebookWeb.Integration.AppsLiveTest do
|
||||||
"sales-app-#{Livebook.Utils.random_short_id()}",
|
"sales-app-#{Livebook.Utils.random_short_id()}",
|
||||||
"opt-app-#{Livebook.Utils.random_short_id()}"
|
"opt-app-#{Livebook.Utils.random_short_id()}"
|
||||||
]
|
]
|
||||||
|
|
||||||
context = change_to_user_session(context)
|
context = change_to_user_session(context)
|
||||||
|
|
||||||
for slug <- slugs do
|
for slug <- slugs do
|
||||||
|
|
Loading…
Add table
Reference in a new issue