Make category optionnal and hide it from the form

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2019-08-07 16:51:48 +02:00
parent bfb3eebccf
commit 8f31beb0fb
5 changed files with 7 additions and 8 deletions

View File

@@ -91,7 +91,6 @@ defmodule Mobilizon.Events.Event do
:title,
:begins_on,
:organizer_actor_id,
:category,
:url,
:uuid
])

View File

@@ -131,7 +131,7 @@ defmodule MobilizonWeb.Schema.EventType do
arg(:online_address, :string)
arg(:phone_address, :string)
arg(:organizer_actor_id, non_null(:id))
arg(:category, non_null(:string))
arg(:category, :string)
arg(:physical_address, :address_input)
resolve(&Event.create_event/3)