🛠️Speed up "shared with me" query (#381)

This commit is contained in:
Anton Shepilov
2024-02-27 15:31:11 +01:00
committed by GitHub
parent ad52acec53
commit b82b78aa7d
6 changed files with 19 additions and 5 deletions
@@ -986,6 +986,7 @@ export class DocumentsService {
]
: []),
],
$nin: [...(options.onlyDirectlyShared ? [["creator", [context.user.id]] as inType] : [])],
$lte: [
...(options.last_modified_lt
? [["last_modified", options.last_modified_lt] as comparisonType]