mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-04 03:54:24 +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
|
||||
case {request, response} do
|
||||
|
||||
{request, %{status: 400, body: %{"errors" => %{"detail" => error}}}}
|
||||
when request.private.deploy ->
|
||||
{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
|
||||
{:noreply, socket}
|
||||
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
|
||||
|
||||
|
|
|
@ -96,6 +96,7 @@ defmodule LivebookWeb.Integration.AppsLiveTest do
|
|||
"sales-app-#{Livebook.Utils.random_short_id()}",
|
||||
"opt-app-#{Livebook.Utils.random_short_id()}"
|
||||
]
|
||||
|
||||
context = change_to_user_session(context)
|
||||
|
||||
for slug <- slugs do
|
||||
|
|
Loading…
Add table
Reference in a new issue