diff --git a/js/src/graphql/config.ts b/js/src/graphql/config.ts index d3a29b436..4a3e7011c 100644 --- a/js/src/graphql/config.ts +++ b/js/src/graphql/config.ts @@ -42,7 +42,7 @@ export const CONFIG = gql` location { latitude longitude - accuracyRadius + # accuracyRadius } maps { tiles { diff --git a/js/src/types/config.model.ts b/js/src/types/config.model.ts index 9c40936c4..7bd909c61 100644 --- a/js/src/types/config.model.ts +++ b/js/src/types/config.model.ts @@ -12,7 +12,7 @@ export interface IConfig { location: { latitude: number; longitude: number; - accuracyRadius: number; + // accuracyRadius: number; }; anonymous: { participation: { diff --git a/lib/graphql/resolvers/config.ex b/lib/graphql/resolvers/config.ex index 0c8a45b24..53c704391 100644 --- a/lib/graphql/resolvers/config.ex +++ b/lib/graphql/resolvers/config.ex @@ -3,8 +3,6 @@ defmodule Mobilizon.GraphQL.Resolvers.Config do Handles the config-related GraphQL calls. """ - alias Geolix.Adapter.MMDB2.Record.{Country, Location} - alias Mobilizon.Config @doc """ @@ -15,13 +13,13 @@ defmodule Mobilizon.GraphQL.Resolvers.Config do country_code = case Map.get(geolix, :city) do - %{country: %Country{iso_code: country_code}} -> String.downcase(country_code) + %{country: %{iso_code: country_code}} -> String.downcase(country_code) _ -> nil end location = case Map.get(geolix, :city) do - %{location: %Location{} = location} -> Map.from_struct(location) + %{location: %{} = location} -> location _ -> nil end diff --git a/lib/graphql/schema/config.ex b/lib/graphql/schema/config.ex index 0eee6cd9c..17ddd8233 100644 --- a/lib/graphql/schema/config.ex +++ b/lib/graphql/schema/config.ex @@ -39,7 +39,7 @@ defmodule Mobilizon.GraphQL.Schema.ConfigType do object :lonlat do field(:longitude, :float) field(:latitude, :float) - field(:accuracy_radius, :integer) + # field(:accuracy_radius, :integer) end object :geocoding do