From b0117c2c1aed00451f2f8b97c393d7cced32d8e9 Mon Sep 17 00:00:00 2001 From: Grendgi Date: Wed, 24 Jun 2026 12:15:42 +0300 Subject: [PATCH] fix: keep trashed office docs out of my files --- internal/repository/node.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/repository/node.go b/internal/repository/node.go index 5a6ac66..fb3b25e 100644 --- a/internal/repository/node.go +++ b/internal/repository/node.go @@ -277,8 +277,7 @@ func (r *NodeRepository) ListOfficeExternalURLs(ctx context.Context, userID stri rows, err := r.pool.Query(ctx, ` SELECT DISTINCT n.external_url FROM files_nodes n - WHERE n.deleted_at IS NULL - AND n.node_type = 'office_document' + WHERE n.node_type = 'office_document' AND n.external_url IS NOT NULL AND ( n.owner_user_id = $1