Skip to content
Browse files

Add rootCollection option to SkinGridStore.exist

  • Loading branch information...
1 parent 7158b0d commit 9a79746eebc3e4553c561f34794a7368bad9eaf7 @hmcqueen hmcqueen committed Mar 13, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/mongoskin/gridfs.js
View
4 lib/mongoskin/gridfs.js
@@ -30,9 +30,9 @@ SkinGridStore.prototype.unlink = SkinGridStore.prototype.remove = function(filen
});
}
-SkinGridStore.prototype.exist = function(filename, callback){
+SkinGridStore.prototype.exist = function(filename, rootCollection, callback){
this.skinDb.open(function(err, db) {
- GridStore.exist(db, filename, callback);
+ GridStore.exist(db, filename, rootCollection, callback);
});
}

0 comments on commit 9a79746

Please sign in to comment.
Something went wrong with that request. Please try again.