little cleanup
This commit is contained in:
parent
66de2b159b
commit
59ba5c80b9
6 changed files with 26 additions and 25 deletions
|
|
@ -17,7 +17,7 @@ defmodule Pleroma.Config.TransferTask do
|
|||
end
|
||||
|
||||
def load_and_update_env do
|
||||
with true <- Pleroma.Config.get([:configurable_from_database]),
|
||||
with true <- Pleroma.Config.get(:configurable_from_database),
|
||||
true <- Ecto.Adapters.SQL.table_exists?(Repo, "config"),
|
||||
started_applications <- Application.started_applications() do
|
||||
# We need to restart applications for loaded settings take effect
|
||||
|
|
|
|||
|
|
@ -847,7 +847,7 @@ defmodule Pleroma.Web.AdminAPI.AdminAPIController do
|
|||
end
|
||||
|
||||
defp configurable_from_database(conn) do
|
||||
if Pleroma.Config.get([:configurable_from_database]) do
|
||||
if Pleroma.Config.get(:configurable_from_database) do
|
||||
:ok
|
||||
else
|
||||
errors(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue