Migration: Enum.chunk is deprecated.
This commit is contained in:
parent
d8dd945a03
commit
f71376e30e
|
@ -33,7 +33,7 @@ defp update_markers do
|
||||||
end)
|
end)
|
||||||
|
|
||||||
markers_attrs
|
markers_attrs
|
||||||
|> Enum.chunk(1000)
|
|> Enum.chunk_every(1000)
|
||||||
|> Enum.each(fn marker_attrs ->
|
|> Enum.each(fn marker_attrs ->
|
||||||
Repo.insert_all("markers", markers_attrs,
|
Repo.insert_all("markers", markers_attrs,
|
||||||
on_conflict: {:replace, [:last_read_id]},
|
on_conflict: {:replace, [:last_read_id]},
|
||||||
|
|
Loading…
Reference in a new issue