Migrate to Vue 3 and Vite
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -6,7 +6,7 @@ defmodule Mobilizon.GraphQL.Resolvers.Statistics do
|
||||
alias Mobilizon.Service.Statistics, as: StatisticsModule
|
||||
|
||||
@doc """
|
||||
Gets config.
|
||||
Gets statistics.
|
||||
"""
|
||||
@spec get_statistics(any(), any(), any()) :: {:ok, map()}
|
||||
def get_statistics(_parent, _params, _context) do
|
||||
@@ -23,4 +23,12 @@ defmodule Mobilizon.GraphQL.Resolvers.Statistics do
|
||||
number_of_instance_followers: StatisticsModule.get_cached_value(:instance_followers)
|
||||
}}
|
||||
end
|
||||
|
||||
@doc """
|
||||
Gets category statistics
|
||||
"""
|
||||
@spec get_category_statistics(any(), any(), any()) :: {:ok, list()}
|
||||
def get_category_statistics(_parent, _params, _context) do
|
||||
{:ok, StatisticsModule.category_statistics()}
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user