Skip to content

Commit

Permalink
Changes resquest
Browse files Browse the repository at this point in the history
  • Loading branch information
Afonso-santos committed Sep 26, 2023
1 parent 51c8933 commit 36c72b8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion lib/bokken_web/controllers/ninja/ninja_json.ex
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
defmodule BokkenWeb.NinjaJSON do
alias Bokken.Uploaders.Avatar
alias BokkenWeb.{SkillJSON}

def index(%{ninjas: ninjas}) do
%{data: for(ninja <- ninjas, do: data(ninja))}
Expand Down
3 changes: 1 addition & 2 deletions test/bokken_web/controllers/ninja_json_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ defmodule Bokken.NinjaJSONTest do
use Bokken.DataCase

import Bokken.Factory

alias BokkenWeb.NinjaJSON
alias Bokken.Uploaders.Avatar
alias BokkenWeb.NinjaJSON

test "data" do
ninja = build(:ninja)
Expand Down

0 comments on commit 36c72b8

Please sign in to comment.