Browse Source

folder文件数量调整

kely 10 months ago
parent
commit
451332c294
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/Http/Controllers/API/FolderController.php

+ 1 - 0
app/Http/Controllers/API/FolderController.php

@@ -263,6 +263,7 @@ class FolderController extends Controller
         $sonFileCount=File::query()
             ->where($objectWhere)
             ->whereIn('folder_id',$folders->pluck('id'))
+            ->where("is_latest_version", 1)
             ->selectRaw("count(*) as cut, folder_id")
             ->groupBy("folder_id")
             ->pluck("cut", "folder_id");