mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-12 07:54:49 +08:00
Cast the payload on User
This commit is contained in:
parent
72b984618e
commit
f8e76b1a06
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue