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

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

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