Skip to content

Commit

Permalink
Update gridstore.js
Browse files Browse the repository at this point in the history
there have a bug when i want unlink mulit filename, must have {root:} in options
  • Loading branch information
wuxq committed Aug 5, 2013
1 parent 36ae2df commit 02a5723
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mongodb/gridfs/gridstore.js
Original file line number Diff line number Diff line change
Expand Up @@ -1151,7 +1151,7 @@ GridStore.unlink = function(db, names, options, callback) {
var tc = 0;
for(var i = 0; i < names.length; i++) {
++tc;
self.unlink(db, names[i], function(result) {
self.unlink(db, names[i], options, function(result) {
if(--tc == 0) {
callback(null, self);
}
Expand Down

0 comments on commit 02a5723

Please sign in to comment.