Skip to content

Commit

Permalink
docs: explain why the path predicate has been added
Browse files Browse the repository at this point in the history
  • Loading branch information
trollepierre committed Aug 9, 2022
1 parent 742b360 commit 53cda5d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/drive/web/modules/queries.js
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ export const prepareSuggestionQuery = () => {
$ne: TRASH_DIR_ID
},
path: {
// this predicate is necessary until the trashed attribute is more reliable
$or: [{ $exists: false }, { $regex: '^(?!/.cozy_trash)' }]
},
trashed: {
Expand Down

0 comments on commit 53cda5d

Please sign in to comment.