Skip to content

Commit

Permalink
Exclude location field from search query in
Browse files Browse the repository at this point in the history
MongoReadStream.
  • Loading branch information
KillianG committed Nov 10, 2023
1 parent 7866a1d commit c6751e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/storage/metadata/mongoclient/readStream.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class MongoReadStream extends Readable {
Object.assign(query, searchOptions);
}

this._cursor = c.find(query).sort({
this._cursor = c.find(query, { 'value.location': 0 }).sort({
_id: options.reverse ? -1 : 1,
});
if (options.limit && options.limit !== -1) {
Expand Down

0 comments on commit c6751e6

Please sign in to comment.