1
0
Fork 1
mirror of https://akkoma.dev/AkkomaGang/akkoma.git synced 2024-12-25 04:53:06 +00:00

migration fix

This commit is contained in:
Alexander Strizhakov 2020-09-04 12:05:17 +03:00 committed by rinpatch
parent eb5ff715f7
commit 29c1178c2b

View file

@ -13,7 +13,7 @@ def change do
select: %{id: e.id, activity_id: e.activity_id, scheduled_at: e.scheduled_at}
)
|> Pleroma.Repo.stream()
|> Enum.each(fn expiration ->
|> Stream.each(fn expiration ->
with {:ok, expires_at} <- DateTime.from_naive(expiration.scheduled_at, "Etc/UTC") do
Pleroma.Workers.PurgeExpiredActivity.enqueue(%{
activity_id: FlakeId.to_string(expiration.activity_id),