Skip to content

Commit

Permalink
fix(api): remove name field from changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
Irere123 committed Jul 25, 2024
1 parent baf8600 commit d2fdc59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/lib/telescope/schemas/lodge.ex
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ defmodule Telescope.Schemas.Lodge do

def changeset(lodge, params \\ %{}) do
lodge
|> cast(params, [:type, :name, :owner_id])
|> validate_required([:name, :owner_id])
|> cast(params, [:type, :owner_id])
|> validate_required([:owner_id])
end
end

0 comments on commit d2fdc59

Please sign in to comment.