Revert "Pleroma.Web.AdminAPI.ConfigController: dialyzer error"

This reverts commit 60d89cb404.
This commit is contained in:
Mark Felder 2024-01-30 14:19:13 -05:00
parent 2c8e4f32c6
commit 1e76ceacd5
3 changed files with 4 additions and 4 deletions

View File

@ -128,7 +128,7 @@ defmodule Pleroma.Web.AdminAPI.ConfigController do
end
end
def update(%{body_params: %{"configs" => configs}} = conn, _) do
def update(%{body_params: %{configs: configs}} = conn, _) do
with :ok <- configurable_from_database() do
results =
configs

View File

@ -47,7 +47,7 @@ defmodule Pleroma.Web.ApiSpec.Admin.ConfigOperation do
request_body("Parameters", %Schema{
type: :object,
properties: %{
"configs" => %Schema{
configs: %Schema{
type: :array,
items: %Schema{
type: :object,

View File

@ -873,7 +873,7 @@ defmodule Pleroma.Web.AdminAPI.ConfigControllerTest do
%{
"tuple" => [
":_",
"Plug.Cowboy.Handler",
"Phoenix.Endpoint.Cowboy2Handler",
%{"tuple" => ["Pleroma.Web.Endpoint", []]}
]
}
@ -937,7 +937,7 @@ defmodule Pleroma.Web.AdminAPI.ConfigControllerTest do
%{
"tuple" => [
":_",
"Plug.Cowboy.Handler",
"Phoenix.Endpoint.Cowboy2Handler",
%{"tuple" => ["Pleroma.Web.Endpoint", []]}
]
}