mirror of
https://codeberg.org/shroff/phylum.git
synced 2026-05-04 02:59:16 -05:00
Do not list root as a child of root in ReadDir
This commit is contained in:
@@ -52,6 +52,7 @@ WITH RECURSIVE nodes(id, parent, name, dir, created, modified, size, etag, depth
|
||||
ON r.id = p.resource_id
|
||||
AND p.user_id = @user_id::int
|
||||
WHERE deleted IS NULL
|
||||
AND r.id != @id
|
||||
AND CASE WHEN @recursive::boolean THEN true ELSE depth < 1 END
|
||||
)
|
||||
SELECT * from nodes
|
||||
|
||||
Reference in New Issue
Block a user