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 @@ def show(conn, _params) do
end end
end end
def update(%{body_params: %{"configs" => configs}} = conn, _) do def update(%{body_params: %{configs: configs}} = conn, _) do
with :ok <- configurable_from_database() do with :ok <- configurable_from_database() do
results = results =
configs configs

View File

@ -47,7 +47,7 @@ def update_operation do
request_body("Parameters", %Schema{ request_body("Parameters", %Schema{
type: :object, type: :object,
properties: %{ properties: %{
"configs" => %Schema{ configs: %Schema{
type: :array, type: :array,
items: %Schema{ items: %Schema{
type: :object, type: :object,

View File

@ -873,7 +873,7 @@ test "tuples with more than two values", %{conn: conn} do
%{ %{
"tuple" => [ "tuple" => [
":_", ":_",
"Plug.Cowboy.Handler", "Phoenix.Endpoint.Cowboy2Handler",
%{"tuple" => ["Pleroma.Web.Endpoint", []]} %{"tuple" => ["Pleroma.Web.Endpoint", []]}
] ]
} }
@ -937,7 +937,7 @@ test "tuples with more than two values", %{conn: conn} do
%{ %{
"tuple" => [ "tuple" => [
":_", ":_",
"Plug.Cowboy.Handler", "Phoenix.Endpoint.Cowboy2Handler",
%{"tuple" => ["Pleroma.Web.Endpoint", []]} %{"tuple" => ["Pleroma.Web.Endpoint", []]}
] ]
} }