Skip to content

Commit abf1852

Browse files
authored
Update left side of update_all to an unused count
Left side of `update_all/3` is a count, not a tuple.
1 parent 0fbd7ab commit abf1852

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_all(repo, query, opts)
777+
_update_count = Connection.update_all(repo, query, opts)
778778
:ok
779779
end
780780

0 commit comments

Comments
 (0)