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, `
|
rows, err := r.pool.Query(ctx, `
|
||||||
SELECT DISTINCT n.external_url
|
SELECT DISTINCT n.external_url
|
||||||
FROM files_nodes n
|
FROM files_nodes n
|
||||||
WHERE n.deleted_at IS NULL
|
WHERE n.node_type = 'office_document'
|
||||||
AND n.node_type = 'office_document'
|
|
||||||
AND n.external_url IS NOT NULL
|
AND n.external_url IS NOT NULL
|
||||||
AND (
|
AND (
|
||||||
n.owner_user_id = $1
|
n.owner_user_id = $1
|
||||||
|
|||||||
Reference in New Issue
Block a user