Migration: Enum.chunk is deprecated.
This commit is contained in:
parent
d8dd945a03
commit
f71376e30e
@ -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]},
|
||||
|
Loading…
Reference in New Issue
Block a user