Revert "Pleroma.Web.AdminAPI.ConfigController: dialyzer error"
This reverts commit 60d89cb404
.
This commit is contained in:
parent
2c8e4f32c6
commit
1e76ceacd5
|
@ -128,7 +128,7 @@ def show(conn, _params) 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
|
||||
|
|
|
@ -47,7 +47,7 @@ def update_operation do
|
|||
request_body("Parameters", %Schema{
|
||||
type: :object,
|
||||
properties: %{
|
||||
"configs" => %Schema{
|
||||
configs: %Schema{
|
||||
type: :array,
|
||||
items: %Schema{
|
||||
type: :object,
|
||||
|
|
|
@ -873,7 +873,7 @@ test "tuples with more than two values", %{conn: conn} do
|
|||
%{
|
||||
"tuple" => [
|
||||
":_",
|
||||
"Plug.Cowboy.Handler",
|
||||
"Phoenix.Endpoint.Cowboy2Handler",
|
||||
%{"tuple" => ["Pleroma.Web.Endpoint", []]}
|
||||
]
|
||||
}
|
||||
|
@ -937,7 +937,7 @@ test "tuples with more than two values", %{conn: conn} do
|
|||
%{
|
||||
"tuple" => [
|
||||
":_",
|
||||
"Plug.Cowboy.Handler",
|
||||
"Phoenix.Endpoint.Cowboy2Handler",
|
||||
%{"tuple" => ["Pleroma.Web.Endpoint", []]}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue