Skip to content

Commit 62d7414

Browse files
committed
fix: compiler warnings
1 parent 316256d commit 62d7414

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/algora/settings/settings.ex

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@ defmodule Algora.Settings do
22
@moduledoc false
33
use Ecto.Schema
44

5-
import Ecto.Query
6-
75
alias Algora.Accounts
8-
alias Algora.Accounts.User
9-
alias Algora.PSP.ConnectCountries
106
alias Algora.Repo
117

128
@primary_key {:key, :string, []}

lib/algora_web/live/org/jobs_live.ex

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,15 @@ defmodule AlgoraWeb.Org.JobsLive do
187187
end
188188
else
189189
{:noreply,
190-
redirect(socket, external: Algora.Github.authorize_url(%{return_to: "/org/#{@current_org.handle}/jobs"}))}
190+
redirect(socket,
191+
external: Algora.Github.authorize_url(%{return_to: "/org/#{socket.assigns.current_org.handle}/jobs"})
192+
)}
191193
end
192194
else
193195
{:noreply,
194-
redirect(socket, external: Algora.Github.authorize_url(%{return_to: "/org/#{@current_org.handle}/jobs"}))}
196+
redirect(socket,
197+
external: Algora.Github.authorize_url(%{return_to: "/org/#{socket.assigns.current_org.handle}/jobs"})
198+
)}
195199
end
196200
end
197201

0 commit comments

Comments
 (0)