Permalink
Browse files

Collection.insert shouldn't return a length.

  • Loading branch information...
1 parent 74ca827 commit 4bea6396d22c8ddf47ab945df5aaa231a5fb6bab @sergi committed Feb 12, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/mongodb.js
View
@@ -223,7 +223,7 @@ Collection.prototype = {
var insertable = docs.isArray && docs.isArray() ?
docs.map(Util.createBDObject) : Util.createBDObject(docs);
- return this.collection.insert(insertable).length;
+ this.collection.insert(insertable);
},
resetIndexCache: function() {
this._indexCache = {};

0 comments on commit 4bea639

Please sign in to comment.