peterguo 1 month ago
parent
commit
21298121fd
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/Http/Controllers/API/FileController.php

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

@@ -361,6 +361,7 @@ class FileController extends Controller
             ->where('is_bim', 1)
             ->where('object_type', $file->object_type)
             ->where('object_id', $file->object_id)
+            ->where('folder_id', $file->folder_id)
             ->where('title', $file->title)
             ->latest('version')
             ->paginate($pageSize);