From 53cda5dbac9fd6d5fd07e28df4941318b4c7ef27 Mon Sep 17 00:00:00 2001 From: Cozy Pierre Date: Tue, 9 Aug 2022 16:41:59 +0200 Subject: [PATCH] docs: explain why the path predicate has been added --- src/drive/web/modules/queries.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/drive/web/modules/queries.js b/src/drive/web/modules/queries.js index 592a0b3a35..0fd80d5dd8 100644 --- a/src/drive/web/modules/queries.js +++ b/src/drive/web/modules/queries.js @@ -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: {