Skip to content

Commit

Permalink
Fix event creation
Browse files Browse the repository at this point in the history
  • Loading branch information
alxlion committed Dec 26, 2024
1 parent 6053605 commit 13a7ad3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/claper/events/event.ex
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ defmodule Claper.Events.Event do
|> cast_assoc(:leaders)
|> validate_required([:code, :started_at])
|> downcase_code
|> put_change(:uuid, Ecto.UUID.generate())
end

def downcase_code(changeset) do
Expand Down

0 comments on commit 13a7ad3

Please sign in to comment.