Backup: Fix config

This commit is contained in:
Lain Soykaf 2023-12-10 19:46:25 +04:00
parent 6e3267d1bd
commit 06fc196772
2 changed files with 2 additions and 2 deletions

View File

@ -146,7 +146,7 @@
config :pleroma, Pleroma.PromEx, disabled: true
# Mox definitions. Only read during compile time.
Application.put_env(Pleroma.User.Backup, :config_impl, Pleroma.UnstubbedConfigMock)
config :pleroma, Pleroma.User.Backup, config_impl: Pleroma.UnstubbedConfigMock
if File.exists?("./config/test.secret.exs") do
import_config "test.secret.exs"

View File

@ -35,7 +35,7 @@ defmodule Pleroma.User.Backup do
timestamps()
end
@config_impl Application.compile_env(__MODULE__, :config_impl, Pleroma.Config)
@config_impl Application.compile_env(:pleroma, [__MODULE__, :config_impl], Pleroma.Config)
def create(user, admin_id \\ nil) do
with :ok <- validate_limit(user, admin_id),