Cast the payload on User

This commit is contained in:
Alexandre de Souza 2024-12-02 10:24:10 -03:00
parent 72b984618e
commit f8e76b1a06
No known key found for this signature in database
GPG key ID: E39228FFBA346545

View file

@ -51,7 +51,7 @@ defmodule Livebook.Users.User do
def changeset(user, attrs \\ %{}) do
user
|> cast(attrs, [:name, :email, :avatar_url, :hex_color, :role])
|> cast(attrs, [:name, :email, :payload, :avatar_url, :hex_color, :role])
|> validate_required([:hex_color])
end
end