case harmonization with other fields
- longevents -> long_events (back-end) - longevents -> longEvents (front-end)
This commit is contained in:
@@ -76,7 +76,7 @@ defmodule Mobilizon.GraphQL.Resolvers.Event do
|
||||
limit: limit,
|
||||
order_by: order_by,
|
||||
direction: direction,
|
||||
longevents: longevents,
|
||||
long_events: long_events,
|
||||
location: location,
|
||||
radius: radius
|
||||
},
|
||||
@@ -84,7 +84,7 @@ defmodule Mobilizon.GraphQL.Resolvers.Event do
|
||||
)
|
||||
when limit < @event_max_limit do
|
||||
{:ok,
|
||||
Events.list_events(page, limit, order_by, direction, true, longevents, location, radius)}
|
||||
Events.list_events(page, limit, order_by, direction, true, long_events, location, radius)}
|
||||
end
|
||||
|
||||
def list_events(
|
||||
|
||||
@@ -400,7 +400,7 @@ defmodule Mobilizon.GraphQL.Schema.EventType do
|
||||
description: "Direction for the sort"
|
||||
)
|
||||
|
||||
arg(:longevents, :boolean,
|
||||
arg(:long_events, :boolean,
|
||||
default_value: nil,
|
||||
description: "if mention filter in or out long events"
|
||||
)
|
||||
|
||||
@@ -287,7 +287,7 @@ defmodule Mobilizon.GraphQL.Schema.SearchType do
|
||||
description: "Radius around the location to search in"
|
||||
)
|
||||
|
||||
arg(:longevents, :boolean, description: "if mention filter in or out long events")
|
||||
arg(:long_events, :boolean, description: "if mention filter in or out long events")
|
||||
|
||||
arg(:bbox, :string, description: "The bbox to search events into")
|
||||
arg(:zoom, :integer, description: "The zoom level for searching events")
|
||||
|
||||
Reference in New Issue
Block a user