fixed uploadfilescontroller to use the file_id to delete the correct

entry.
This commit is contained in:
Speedyduck300000
2025-09-01 07:34:18 +02:00
parent b3c583b6dc
commit 53b96168a9
@@ -139,7 +139,7 @@ class UploadedFilesController extends Controller
// Check for the file
$log = Actionlog::find($file_id)->where('item_type', self::$map_object_type[$object_type])
$log = Actionlog::where('id',$file_id)->where('item_type', self::$map_object_type[$object_type])
->where('item_id', $object->id)->first();
if ($log) {