Rename Pleroma.Backup to Pleroma.User.Backup
This commit is contained in:
parent
c1976d5b19
commit
ad605e3e16
11 changed files with 22 additions and 21 deletions
|
|
@ -6,7 +6,7 @@ defmodule Pleroma.Workers.BackupWorker do
|
|||
use Oban.Worker, queue: :backup, max_attempts: 1
|
||||
|
||||
alias Oban.Job
|
||||
alias Pleroma.Backup
|
||||
alias Pleroma.User.Backup
|
||||
|
||||
def process(backup, admin_user_id \\ nil) do
|
||||
%{"op" => "process", "backup_id" => backup.id, "admin_user_id" => admin_user_id}
|
||||
|
|
@ -15,7 +15,7 @@ defmodule Pleroma.Workers.BackupWorker do
|
|||
end
|
||||
|
||||
def schedule_deletion(backup) do
|
||||
days = Pleroma.Config.get([Pleroma.Backup, :purge_after_days])
|
||||
days = Pleroma.Config.get([Backup, :purge_after_days])
|
||||
time = 60 * 60 * 24 * days
|
||||
scheduled_at = Calendar.NaiveDateTime.add!(backup.inserted_at, time)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue