aboutsummaryrefslogtreecommitdiff
path: root/shardweb/lib/controllers/identity_controller.ex
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2018-10-12 18:16:46 +0200
committerAlex Auvolat <alex@adnab.me>2018-10-12 18:16:46 +0200
commit574b572fac144135c4381581351445bf5d0de81c (patch)
tree1ad2fa0157583a955069332e6a957250ff362967 /shardweb/lib/controllers/identity_controller.ex
parent7bc609a85b43ed86eccb9cd40d9db31f15aaba1d (diff)
downloadshard-574b572fac144135c4381581351445bf5d0de81c.tar.gz
shard-574b572fac144135c4381581351445bf5d0de81c.zip
Clean up interface to shards0.0.3
Diffstat (limited to 'shardweb/lib/controllers/identity_controller.ex')
-rw-r--r--shardweb/lib/controllers/identity_controller.ex4
1 files changed, 2 insertions, 2 deletions
diff --git a/shardweb/lib/controllers/identity_controller.ex b/shardweb/lib/controllers/identity_controller.ex
index dd254bb..962a888 100644
--- a/shardweb/lib/controllers/identity_controller.ex
+++ b/shardweb/lib/controllers/identity_controller.ex
@@ -27,9 +27,9 @@ defmodule ShardWeb.IdentityController do
def update(conn, params) do
pid = SApp.Identity.find_proc(conn.assigns.pk)
- info = GenServer.call(pid, :get_info)
+ info = SApp.Identity.get_info(pid)
info = %{info | nick: params["nick"]}
- GenServer.call(pid, {:set_info, info})
+ SApp.Identity.set_info(pid, info)
redirect conn, to: identity_path(conn, :self)
end