Skip to content

Commit

Permalink
Fixed Veil.verify regression from cache
Browse files Browse the repository at this point in the history
  • Loading branch information
zanderxyz committed Aug 25, 2019
1 parent 0c0e669 commit 9c70c6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule Veil.MixProject do
use Mix.Project

@version "0.2.2"
@version "0.2.3"

def project do
[
Expand Down
2 changes: 1 addition & 1 deletion priv/templates/lib/main/veil/veil.ex
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ defmodule <%= main_module %>.Veil do
def get_session(nil), do: {:error, :no_permission}

def get_session(unique_id) do
with {:ok, session} <- Cache.get_and_refresh(:veil_sessions, unique_id) do
with {:ok, {:ok, session}} <- Cache.get_and_refresh(:veil_sessions, unique_id) do
unless is_nil(session) do
{:ok, session}
else
Expand Down

0 comments on commit 9c70c6a

Please sign in to comment.