Skip to content

Commit

Permalink
add suggested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsp45 committed Sep 27, 2023
1 parent 9590a23 commit b159d5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/bokken_web/views/auth_view.ex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule BokkenWeb.AuthView do
use BokkenWeb, :view

alias BokkenWeb.AuthView
alias BokkenWeb.AuthJSON
alias BokkenWeb.GuardianView
alias BokkenWeb.MentorView
alias BokkenWeb.NinjaView
Expand All @@ -12,7 +12,7 @@ defmodule BokkenWeb.AuthView do
end

def render("me.json", %{user: %{role: :guardian, guardian: guardian} = user}) do
render_one(guardian, GuardianView, "guardian.json", current_user: user)
render(guardian, GuardianJSON, :show, current_user: user)

Check failure on line 15 in lib/bokken_web/views/auth_view.ex

View workflow job for this annotation

GitHub Actions / OTP 25.x / Elixir 1.14.x

** (CompileError) lib/bokken_web/views/auth_view.ex:15: undefined function render/4 (expected BokkenWeb.AuthView to define such a function or for it to be imported, but none are available)

Check failure on line 15 in lib/bokken_web/views/auth_view.ex

View workflow job for this annotation

GitHub Actions / OTP 25.x / Elixir 1.14.x

** (CompileError) lib/bokken_web/views/auth_view.ex:15: undefined function render/4 (expected BokkenWeb.AuthView to define such a function or for it to be imported, but none are available)
|> Map.merge(render_one(user, AuthView, "user.json", current_user: user))
|> Map.put(:guardian_id, guardian.id)
end
Expand Down

0 comments on commit b159d5f

Please sign in to comment.