diff --git a/tdrive/backend/node/src/services/documents/entities/drive-file.ts b/tdrive/backend/node/src/services/documents/entities/drive-file.ts index 7ecb3f85..9d4c7d07 100644 --- a/tdrive/backend/node/src/services/documents/entities/drive-file.ts +++ b/tdrive/backend/node/src/services/documents/entities/drive-file.ts @@ -54,6 +54,9 @@ export type AVStatus = AVStatusSafe | AVStatusUnsafe; // Needs to be globally unique (no `company_id`) because it's the only key that OnlyOffice // will return to us to identify the document being edited. Convenient for other plugins too. ["editing_session_key"], + + // For trash folder enumeration. the is_in_trash above was not always picked by the planner + ["creator", "is_in_trash", "scope", "company_id"], ], primaryKey: [["company_id"], "id"], type: TYPE,