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

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

@@ -68,7 +68,7 @@ class FileController extends Controller
             ->update(['title' => $request->get('title')]);
 
 
-        ActionRepository::createByFile($file->object_id, $file->object_type, ObjectAction::EDITED_FILE);
+        ActionRepository::create($id, ActionObjectType::CONTAINER_FILE, ObjectAction::EDITED_FILE);
 
         return $this->noContent();
     }