Skip to content

Commit 69ea5c1

Browse files
committed
When no revision is passed, fetch latest version
1 parent 9029b83 commit 69ea5c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/bundle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ Bundle.find = function(hash, revision, cb){
140140
});
141141
} else {
142142
coll.find(query)
143-
.sort({meta: {revision: -1}})
143+
.sort({'meta.revision': -1})
144144
.toArray(function(err, docs){
145145
if (err || !docs || !docs.length){
146146
cb('Not found');

0 commit comments

Comments
 (0)