Fix activity log on rename api endpoint (#1149)

This commit is contained in:
Boy132 2025-03-22 17:01:11 +01:00 committed by GitHub
parent ab953b2f4d
commit a47ad071c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -172,8 +172,8 @@ class FileController extends ClientApiController
Activity::event('server:file.rename')
->property('directory', $request->input('root'))
->property('files', $files)
->property('to', $files['to'])
->property('from', $files['from'])
->property('to', $files[0]['to'])
->property('from', $files[0]['from'])
->log();
return new JsonResponse([], Response::HTTP_NO_CONTENT);