Fix credo warning
This commit is contained in:
parent
0f1fc382d0
commit
cde828ff7d
|
@ -35,10 +35,11 @@ def perform(
|
||||||
^hrefs
|
^hrefs
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
# The query above can be time consumptive on large instances until we refactor how uploads are stored
|
# The query above can be time consumptive on large instances until we
|
||||||
|
# refactor how uploads are stored
|
||||||
|> Repo.all(timout: :infinity)
|
|> Repo.all(timout: :infinity)
|
||||||
# we should delete 1 object for any given attachment, but don't delete files if
|
# we should delete 1 object for any given attachment, but don't delete
|
||||||
# there are more than 1 object for it
|
# files if there are more than 1 object for it
|
||||||
|> Enum.reduce(%{}, fn %{
|
|> Enum.reduce(%{}, fn %{
|
||||||
id: id,
|
id: id,
|
||||||
data: %{
|
data: %{
|
||||||
|
|
Loading…
Reference in New Issue