migration fix
authorAlexander Strizhakov <alex.strizhakov@gmail.com>
Fri, 4 Sep 2020 09:05:17 +0000 (12:05 +0300)
committerrinpatch <rinpatch@sdf.org>
Thu, 10 Sep 2020 18:50:41 +0000 (21:50 +0300)
priv/repo/migrations/20200825061316_move_activity_expirations_to_oban.exs

index 2bfefceb07192037f7c8d5eeecbfae1b3d76e011..1379333682399e474e2b1b179b1212ef70e3c26c 100644 (file)
@@ -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),