Revert "Pleroma.Web.AdminAPI.ConfigController: dialyzer error"
This reverts commit 60d89cb404
.
This commit is contained in:
parent
2c8e4f32c6
commit
1e76ceacd5
@ -128,7 +128,7 @@ defmodule Pleroma.Web.AdminAPI.ConfigController 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
|
||||||
|
@ -47,7 +47,7 @@ defmodule Pleroma.Web.ApiSpec.Admin.ConfigOperation 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,
|
||||||
|
@ -873,7 +873,7 @@ defmodule Pleroma.Web.AdminAPI.ConfigControllerTest do
|
|||||||
%{
|
%{
|
||||||
"tuple" => [
|
"tuple" => [
|
||||||
":_",
|
":_",
|
||||||
"Plug.Cowboy.Handler",
|
"Phoenix.Endpoint.Cowboy2Handler",
|
||||||
%{"tuple" => ["Pleroma.Web.Endpoint", []]}
|
%{"tuple" => ["Pleroma.Web.Endpoint", []]}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -937,7 +937,7 @@ defmodule Pleroma.Web.AdminAPI.ConfigControllerTest do
|
|||||||
%{
|
%{
|
||||||
"tuple" => [
|
"tuple" => [
|
||||||
":_",
|
":_",
|
||||||
"Plug.Cowboy.Handler",
|
"Phoenix.Endpoint.Cowboy2Handler",
|
||||||
%{"tuple" => ["Pleroma.Web.Endpoint", []]}
|
%{"tuple" => ["Pleroma.Web.Endpoint", []]}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user