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