fix typo.

This commit is contained in:
lain 2018-02-18 23:13:19 +01:00
parent 8b11546334
commit 932d346d35

View file

@ -272,9 +272,8 @@ def make_user_from_ap_id(ap_id) do
name: data["name"]
}
User.insert_or_update_user(user_data)
if user = User.get_by_ap_id(ap_id) do
User.info_changeset(user, user_data}
User.info_changeset(user, user_data)
|> Repo.update
else
User.insert_or_update_user(user_data)