fix(mindspace): sync nested OA files and count workspace assets

Recursive workspace sync now imports files in oa/private/public subfolders,
references workspace paths without duplicating storage, and includes
workspace-sourced assets in category itemCount. Refresh counts when leaving
a category view.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-06-29 09:45:52 +08:00
parent 16828a58f7
commit 637b32515a
8 changed files with 274 additions and 57 deletions
-1
View File
@@ -179,7 +179,6 @@ export function createMindSpaceService(pool, options = {}) {
ON a.category_id = c.id
AND a.user_id = c.user_id
AND a.status <> 'deleted'
AND a.source_type = 'upload'
LEFT JOIN h5_page_records p
ON p.category_id = c.id AND p.user_id = c.user_id AND p.status <> 'deleted'
LEFT JOIN h5_publish_records pr