Skip to content

Commit

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

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

0 comments on commit 2537f8a

Please sign in to comment.