Skip to content

Commit a90552e

Browse files
committed
Merge pull request #628 from aheckmann/fixIsCapped
Fix isCapped
2 parents 225e759 + 8f97c15 commit a90552e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mongodb/collection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1293,7 +1293,7 @@ Collection.prototype.isCapped = function isCapped(callback) {
12931293
if(err != null) {
12941294
callback(err);
12951295
} else {
1296-
callback(null, document.capped);
1296+
callback(null, document && document.capped);
12971297
}
12981298
});
12991299
};

0 commit comments

Comments
 (0)