remove unchangeable requirements

This commit is contained in:
2022-07-01 19:53:44 -04:00
parent 5fd46c326f
commit 67010640f0
5 changed files with 6 additions and 6 deletions

View File

@ -55,6 +55,6 @@ defmodule Cannery.Containers.Container do
def update_changeset(container, attrs) do
container
|> cast(attrs, [:name, :desc, :type, :location])
|> validate_required([:name, :type, :user_id])
|> validate_required([:name, :type])
end
end