Skip to content

Commit fbdf592

Browse files
Update user_controller.ex
1 parent 71f1ac9 commit fbdf592

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/cadet_web/controllers/user_controller.ex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ defmodule CadetWeb.UserController do
1515
max_grade = user_max_grade(user)
1616
story = user_current_story(user)
1717
xp = user_total_xp(user)
18-
update(user, %{ collectibles: %{haha: "haha"}, completed_quests: ["haha"]})
18+
1919
game_states = user_game_states(user)
2020
render(
2121
conn,
@@ -40,7 +40,7 @@ defmodule CadetWeb.UserController do
4040

4141
def update_game_states(conn, new_game_states) do
4242
user = conn.assigns[:current_user]
43-
Cadet.GameStates.update(new_game_states, user)
43+
Cadet.GameStates.update(user, new_game_states)
4444
conn
4545
end
4646

@@ -53,7 +53,7 @@ defmodule CadetWeb.UserController do
5353
produces("application/json")
5454

5555
parameters do
56-
pic_nicname(:path, :map, "new game states", required: true)
56+
new_game_states(:path, :map, "new game states", required: true)
5757
end
5858
response(200, "OK")
5959
response(400, "Invalid parameters")
@@ -116,8 +116,8 @@ defmodule CadetWeb.UserController do
116116
game_states(
117117
:map,
118118
"States for user's game, including users' collectibles and completed quests.\n"
119-
<> "Collectibles are a map.\n"
120-
<> "Completed quests are an array of strings"
119+
<> "Collectibles is a map.\n"
120+
<> "Completed quests is an array of strings"
121121

122122
)
123123
end

0 commit comments

Comments
 (0)