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 config :pleroma, Pleroma.PromEx, disabled: true
# Mox definitions. Only read during compile time. # 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 if File.exists?("./config/test.secret.exs") do
import_config "test.secret.exs" import_config "test.secret.exs"

View File

@ -35,7 +35,7 @@ defmodule Pleroma.User.Backup do
timestamps() timestamps()
end 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 def create(user, admin_id \\ nil) do
with :ok <- validate_limit(user, admin_id), with :ok <- validate_limit(user, admin_id),