Migration: Enum.chunk is deprecated.

This commit is contained in:
lain 2020-05-11 22:00:01 +02:00
parent d8dd945a03
commit f71376e30e

View File

@ -33,7 +33,7 @@ defp update_markers do
end)
markers_attrs
|> Enum.chunk(1000)
|> Enum.chunk_every(1000)
|> Enum.each(fn marker_attrs ->
Repo.insert_all("markers", markers_attrs,
on_conflict: {:replace, [:last_read_id]},