Apply 1 suggestion(s) to 1 file(s)

This commit is contained in:
Maksim 2020-09-16 03:18:50 +00:00
parent f879d07fa1
commit c74fad9e06
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ def up do
select: %{id: type(q.id, :integer)}, select: %{id: type(q.id, :integer)},
where: is_nil(c.id) where: is_nil(c.id)
) )
|> Repo.chunk_stream(1_000, :bacthes) |> Repo.chunk_stream(1_000, :batches)
|> Stream.each(fn records -> |> Stream.each(fn records ->
notification_ids = Enum.map(records, fn %{id: id} -> id end) notification_ids = Enum.map(records, fn %{id: id} -> id end)