fix(front): Fix event list month order
Closes #1244 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -91,6 +91,16 @@ defmodule Mobilizon.GraphQL.Schema.Actors.GroupType do
|
||||
description: "Filter events that begin before this datetime"
|
||||
)
|
||||
|
||||
arg(:order, :event_order_by,
|
||||
default_value: :begins_on,
|
||||
description: "Order events by start date"
|
||||
)
|
||||
|
||||
arg(:order_direction, :sort_direction,
|
||||
default_value: :asc,
|
||||
description: "Order events direction"
|
||||
)
|
||||
|
||||
arg(:page, :integer, default_value: 1, description: "The page in the paginated event list")
|
||||
arg(:limit, :integer, default_value: 10, description: "The limit of events per page")
|
||||
resolve(&Group.find_events_for_group/3)
|
||||
|
||||
Reference in New Issue
Block a user