Skip to content

Commit

Permalink
Merge pull request #21 from cciuenf/hotfix/minor-improvements
Browse files Browse the repository at this point in the history
fix: remove duplicated `cast_assoc`
  • Loading branch information
Matheus de Souza Pessanha authored Oct 15, 2021
2 parents 44a8d65 + 6b43879 commit d93881c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/fuschia/entities/user.ex
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ defmodule Fuschia.Entities.User do
|> validate_required([:password])
|> validate_password()
|> put_hashed_password()
|> cast_assoc(:contato, required: true)
end

@doc """
Expand All @@ -83,7 +82,6 @@ defmodule Fuschia.Entities.User do
struct
|> changeset(attrs)
|> validate_required([:perfil])
|> cast_assoc(:contato, required: true)
end

@doc """
Expand Down

0 comments on commit d93881c

Please sign in to comment.