From 4c615c8fa6c5372faeb0c4634b4699a736a2ccbf Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Thu, 17 Jun 2021 21:21:22 +0300 Subject: [PATCH] Updated log method name --- app/controllers/api/account.php | 2 +- app/controllers/api/users.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index 5d9e121772..ed3c0f5593 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -850,7 +850,7 @@ App::get('/v1/account/logs') $audit = new Audit($dbForInternal); $countries = $locale->getText('countries'); - $logs = $audit->getLogsByUserAndActions($user->getId(), [ + $logs = $audit->getLogsByUserAndEvents($user->getId(), [ 'account.create', 'account.delete', 'account.update.name', diff --git a/app/controllers/api/users.php b/app/controllers/api/users.php index ab90647658..4d108e5d03 100644 --- a/app/controllers/api/users.php +++ b/app/controllers/api/users.php @@ -234,7 +234,7 @@ App::get('/v1/users/:userId/logs') $countries = $locale->getText('countries'); - $logs = $audit->getLogsByUserAndActions($user->getId(), [ + $logs = $audit->getLogsByUserAndEvents($user->getId(), [ 'account.create', 'account.delete', 'account.update.name',