Replace Application.get_env/2 with Pleroma.Config.get/1
This commit is contained in:
parent
ce47017c89
commit
5cee2fe9fe
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ defmodule Pleroma.DigestEmailWorker do
|
||||||
import Ecto.Query
|
import Ecto.Query
|
||||||
|
|
||||||
def run do
|
def run do
|
||||||
config = Application.get_env(:pleroma, :email_notifications)[:digest]
|
config = Pleroma.Config.get([:email_notifications, :digest])
|
||||||
negative_interval = -Map.fetch!(config, :interval)
|
negative_interval = -Map.fetch!(config, :interval)
|
||||||
inactivity_threshold = Map.fetch!(config, :inactivity_threshold)
|
inactivity_threshold = Map.fetch!(config, :inactivity_threshold)
|
||||||
inactive_users_query = Pleroma.User.list_inactive_users_query(inactivity_threshold)
|
inactive_users_query = Pleroma.User.list_inactive_users_query(inactivity_threshold)
|
||||||
|
|
Loading…
Reference in a new issue