mirror of
https://git.youjo.love/youjo/youjo-be.git
synced 2024-11-20 13:59:55 +01:00
migration fix
This commit is contained in:
parent
eb5ff715f7
commit
29c1178c2b
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ defmodule Pleroma.Repo.Migrations.MoveActivityExpirationsToOban do
|
||||||
select: %{id: e.id, activity_id: e.activity_id, scheduled_at: e.scheduled_at}
|
select: %{id: e.id, activity_id: e.activity_id, scheduled_at: e.scheduled_at}
|
||||||
)
|
)
|
||||||
|> Pleroma.Repo.stream()
|
|> Pleroma.Repo.stream()
|
||||||
|> Enum.each(fn expiration ->
|
|> Stream.each(fn expiration ->
|
||||||
with {:ok, expires_at} <- DateTime.from_naive(expiration.scheduled_at, "Etc/UTC") do
|
with {:ok, expires_at} <- DateTime.from_naive(expiration.scheduled_at, "Etc/UTC") do
|
||||||
Pleroma.Workers.PurgeExpiredActivity.enqueue(%{
|
Pleroma.Workers.PurgeExpiredActivity.enqueue(%{
|
||||||
activity_id: FlakeId.to_string(expiration.activity_id),
|
activity_id: FlakeId.to_string(expiration.activity_id),
|
||||||
|
|
Loading…
Reference in a new issue