Fix for elixir 1.7.

This commit is contained in:
lain 2018-08-12 18:41:33 +02:00
parent 701f5df45c
commit ffd9ad1f0c
1 changed files with 2 additions and 2 deletions

View File

@ -134,8 +134,8 @@ def register_user(params) do
}
# no need to query DB if registration is open
unless @registrations_open || is_nil(tokenString) do
token = Repo.get_by(UserInviteToken, %{token: tokenString})
token = unless @registrations_open || is_nil(tokenString) do
Repo.get_by(UserInviteToken, %{token: tokenString})
end
cond do