Skip to content

Commit

Permalink
Wrap non array query param in singleton array
Browse files Browse the repository at this point in the history
  • Loading branch information
jmatsushita committed Jan 8, 2017
1 parent 76ed759 commit a29d12b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/levelgraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ searchStream = function(db, options) {
if (!query || query.length === 0) {
result.end();
return result;
} else if (!Array.isArray(query)) {
query = [ query ];
}

planner(query, function(err, newquery) {
Expand Down

0 comments on commit a29d12b

Please sign in to comment.