Skip to content

Commit

Permalink
Undid allowing match_id to be cast in the changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
Teifion committed Aug 11, 2024
1 parent 6fc5cb5 commit 429a7cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/teiserver/game/schemas/match.ex
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ defmodule Teiserver.Game.Match do
struct
|> cast(
attrs,
~w(id name tags public? rated? game_name game_version winning_team team_count team_size processed? lobby_opened_at match_started_at match_ended_at ended_normally? match_duration_seconds player_count host_id type_id lobby_id)a
~w(name tags public? rated? game_name game_version winning_team team_count team_size processed? lobby_opened_at match_started_at match_ended_at ended_normally? match_duration_seconds player_count host_id type_id lobby_id)a
)
|> validate_required(~w(public? rated? host_id)a)
end
Expand Down

0 comments on commit 429a7cb

Please sign in to comment.