浏览代码

migration fix

merge-requests/3010/head
Alexander Strizhakov rinpatch 3 年前
父节点
当前提交
29c1178c2b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      priv/repo/migrations/20200825061316_move_activity_expirations_to_oban.exs

+ 1
- 1
priv/repo/migrations/20200825061316_move_activity_expirations_to_oban.exs 查看文件

@@ -13,7 +13,7 @@ defmodule Pleroma.Repo.Migrations.MoveActivityExpirationsToOban 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),


正在加载...
取消
保存