case harmonization with other fields

- longevents -> long_events (back-end)
- longevents -> longEvents (front-end)
This commit is contained in:
Massedil
2024-11-21 20:12:20 +01:00
committed by setop
parent 91b0e7d265
commit 71c0ce37a9
10 changed files with 28 additions and 28 deletions

View File

@@ -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(

View File

@@ -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"
)

View File

@@ -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")