diff --git a/lib/campfire/context/team_context.ex b/lib/campfire/context/team_context.ex index e0171ed..41f10f7 100644 --- a/lib/campfire/context/team_context.ex +++ b/lib/campfire/context/team_context.ex @@ -126,7 +126,8 @@ defmodule Campfire.Context.TeamContext do Update a team meta """ def update_team_meta(team_meta, attrs) do - TeamMeta.changeset(team_meta, attrs) + team_meta + |> TeamMeta.changeset(attrs) |> Repo.update() end diff --git a/lib/campfire/context/user_context.ex b/lib/campfire/context/user_context.ex index dad6a49..ebec0ea 100644 --- a/lib/campfire/context/user_context.ex +++ b/lib/campfire/context/user_context.ex @@ -171,7 +171,8 @@ defmodule Campfire.Context.UserContext do Update a user meta """ def update_user_meta(user_meta, attrs) do - UserMeta.changeset(user_meta, attrs) + user_meta + |> UserMeta.changeset(attrs) |> Repo.update() end @@ -179,7 +180,8 @@ defmodule Campfire.Context.UserContext do Update a user session """ def update_user_session(user_session, attrs) do - UserSession.changeset(user_session, attrs) + user_session + |> UserSession.changeset(attrs) |> Repo.update() end