Skip to content

Commit 0fbd7ab

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)