|
@@ -41,6 +41,7 @@ class ContainerController extends Controller
|
|
|
$fileCount = File::query()
|
|
|
->where('object_type','container')
|
|
|
->whereIn('object_id',$containers->pluck("id")->toArray())
|
|
|
+ ->where("folder_id", 0)
|
|
|
->where("is_latest_version", 1)
|
|
|
->selectRaw("count(*) as cut, object_id")
|
|
|
->groupBy("object_id")
|