diff --git a/lib/mix/tasks/pleroma/search/meilisearch.ex b/lib/mix/tasks/pleroma/search/meilisearch.ex index 299fb5b14..e4dc616b4 100644 --- a/lib/mix/tasks/pleroma/search/meilisearch.ex +++ b/lib/mix/tasks/pleroma/search/meilisearch.ex @@ -126,8 +126,12 @@ def run(["show-keys", master_key]) do decoded = Jason.decode!(result.body) if decoded["results"] do - Enum.each(decoded["results"], fn %{"description" => desc, "key" => key} -> - IO.puts("#{desc}: #{key}") + Enum.each(decoded["results"], fn + %{"name" => name, "key" => key} -> + IO.puts("#{name}: #{key}") + + %{"description" => desc, "key" => key} -> + IO.puts("#{desc}: #{key}") end) else IO.puts("Error fetching the keys, check the master key is correct: #{inspect(decoded)}")