FollowingRelationship: Remove meaningless change
This commit is contained in:
parent
7b79871e97
commit
903955b189
1 changed files with 4 additions and 7 deletions
|
@ -62,13 +62,10 @@ def update(%User{} = follower, %User{} = following, state) do
|
|||
follow(follower, following, state)
|
||||
|
||||
following_relationship ->
|
||||
{:ok, relationship} =
|
||||
following_relationship
|
||||
|> cast(%{state: state}, [:state])
|
||||
|> validate_required([:state])
|
||||
|> Repo.update()
|
||||
|
||||
{:ok, relationship}
|
||||
following_relationship
|
||||
|> cast(%{state: state}, [:state])
|
||||
|> validate_required([:state])
|
||||
|> Repo.update()
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue