Revert "Pleroma.Web.AdminAPI.InstanceDocumentController: fix dialyzer error"
This reverts commit a3024dd5ac.
This commit is contained in:
parent
1fa1a93cd6
commit
39241107d9
2 changed files with 3 additions and 3 deletions
|
|
@ -27,7 +27,7 @@ defmodule Pleroma.Web.AdminAPI.InstanceDocumentController do
|
|||
end
|
||||
end
|
||||
|
||||
def update(%{body_params: %{"file" => file}} = conn, %{name: document_name}) do
|
||||
def update(%{body_params: %{file: file}} = conn, %{name: document_name}) do
|
||||
with {:ok, url} <- InstanceDocument.put(document_name, file.path) do
|
||||
json(conn, %{"url" => url})
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue