fix: keep trashed office docs out of my files
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user