fix: keep trashed office docs out of my files
All checks were successful
CI / hygiene (push) Successful in 2s
Build and Deploy / build-and-deploy (push) Successful in 32s
CI / test (push) Successful in 21s

This commit is contained in:
Grendgi
2026-06-24 12:15:42 +03:00
parent b75f274885
commit b0117c2c1a

View File

@@ -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