Skip to content

Commit 0fbd7ab

Browse files
author
Justin Wood
committed
Use update_all for field renaming
1 parent 9bc2779 commit 0fbd7ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/mongo_ecto.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ defmodule Mongo.Ecto do
774774
opts: [multi: true]
775775
}
776776

777-
{:ok, _} = Connection.update(repo, query, opts)
777+
{:ok, _} = Connection.update_all(repo, query, opts)
778778
:ok
779779
end
780780

0 commit comments

Comments
 (0)