Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
- uses: actions/checkout@v4

- uses: erlef/setup-beam@v1
id: beam
with:
elixir-version: "1.18.3"
otp-version: "OTP-27"
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/api/axios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ api.interceptors.response.use(
return response;
},
(error) => {
if (error.response.status === 401) {
if (error.response?.status === 401) {
useAuthStore.getState().logout();
}
return Promise.reject(error);
Expand Down
1 change: 1 addition & 0 deletions frontend/src/vite-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

interface ImportMetaEnv {
readonly VITE_API_URL: string;
readonly VITE_APTABASE_APP_KEY?: string;
}

interface ImportMeta {
Expand Down
8 changes: 3 additions & 5 deletions server/lib/ethui/stacks/server.ex
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ defmodule Ethui.Stacks.Server do

alias Ethui.Services.{Anvil, Graph}
alias Ethui.Stacks
alias Ethui.Stacks.MultiStackSupervisor
alias Ethui.Stacks.Stack
alias Ethui.Stacks.{Stack, MultiStackSupervisor}
alias Ethui.Stacks.{MultiStackSupervisor, Stack}

# state
@type t :: %{
Expand Down Expand Up @@ -56,10 +54,10 @@ defmodule Ethui.Stacks.Server do
end

def resume(%Stack{} = stack) do
GenServer.call(__MODULE__, {:destroy, stack})
GenServer.call(__MODULE__, {:resume, stack})
end

# adicionar public api aqui, nao queromos interagir com o anvil diretamente
# Public API for stack services - avoid direct interaction with anvil

def anvil_url(slug) do
with [{pid, _}] <- Registry.lookup(Ethui.Stacks.Registry, {slug, :anvil}),
Expand Down