This commit is contained in:
Roman Chvanikov 2020-01-27 04:01:50 +03:00
parent 92c8825515
commit 86c4b76bf0

View file

@ -37,7 +37,7 @@ defmodule Pleroma.Workers.AttachmentsCleanupWorker do
)
# The query above can be time consumptive on large instances until we
# refactor how uploads are stored
|> Repo.all(timout: :infinity)
|> Repo.all(timeout: :infinity)
# we should delete 1 object for any given attachment, but don't delete
# files if there are more than 1 object for it
|> Enum.reduce(%{}, fn %{