diff options
author | Maksim <parallel588@gmail.com> | 2020-09-16 03:18:50 +0000 |
---|---|---|
committer | Maksim <parallel588@gmail.com> | 2020-09-16 03:18:50 +0000 |
commit | c74fad9e06cdb272a1378082908448f7f0b592ac (patch) | |
tree | 93e95bd086d3e33a66c382e6b80f81a1d871b18e | |
parent | f879d07fa1a046b5aa33de8e445b1ca803fa1d04 (diff) | |
download | pleroma-c74fad9e06cdb272a1378082908448f7f0b592ac.tar.gz |
Apply 1 suggestion(s) to 1 file(s)
-rw-r--r-- | priv/repo/migrations/20200914105638_delete_notification_without_activity.exs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/priv/repo/migrations/20200914105638_delete_notification_without_activity.exs b/priv/repo/migrations/20200914105638_delete_notification_without_activity.exs index f5b339101..9333fc5a1 100644 --- a/priv/repo/migrations/20200914105638_delete_notification_without_activity.exs +++ b/priv/repo/migrations/20200914105638_delete_notification_without_activity.exs @@ -11,7 +11,7 @@ defmodule Pleroma.Repo.Migrations.DeleteNotificationWithoutActivity do select: %{id: type(q.id, :integer)}, where: is_nil(c.id) ) - |> Repo.chunk_stream(1_000, :bacthes) + |> Repo.chunk_stream(1_000, :batches) |> Stream.each(fn records -> notification_ids = Enum.map(records, fn %{id: id} -> id end) |