From d1c36d4642409f5ac7cb614542e5c552fd1066b9 Mon Sep 17 00:00:00 2001 From: Agent Date: Tue, 9 Jun 2026 17:40:22 -0400 Subject: [PATCH] fix: AuditService::log() requires 3 args (action, entityType, entityId) --- src/Controllers/AdminController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Controllers/AdminController.php b/src/Controllers/AdminController.php index e1a3c99..c622bdd 100755 --- a/src/Controllers/AdminController.php +++ b/src/Controllers/AdminController.php @@ -226,7 +226,7 @@ class AdminController $db->update('app_config', ['value' => $_POST[$field]], '`key` = ?', [$field]); } } - $this->auditService->log('app_version_updated', 'App version config updated'); + $this->auditService->log('app_version_updated', 'config', null, ['details' => 'App version config updated']); Session::setFlash('success', 'App version updated successfully.'); $this->view->redirect('/admin/app-version'); return; @@ -284,7 +284,7 @@ class AdminController 'type' => $type, ]); - $this->auditService->log('notification_sent', "Notification: {$title}" . ($userId ? " to user #{$userId}" : ' (all users)')); + $this->auditService->log('notification_sent', 'notification', null, ['title' => $title, 'target' => $userId ? "user #{$userId}" : 'all users']); $this->view->json(['success' => true, 'message' => 'Notification sent successfully.']); } -- 2.43.0