From 425d81256bf5bdc4092ff8a3663113b45e90efe6 Mon Sep 17 00:00:00 2001 From: Everly Precia Suresh Date: Wed, 25 May 2022 13:49:32 +0000 Subject: [PATCH] rename audit to EventAudit --- app/controllers/api/account.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index e48f46f33d..6385b91612 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -19,7 +19,7 @@ use Appwrite\Utopia\Database\Validator\CustomId; use MaxMind\Db\Reader; use Utopia\App; use Appwrite\Event\Audit; -use Utopia\Audit\Audit as Audits; +use Utopia\Audit\Audit as EventAudit; use Utopia\Config\Config; use Utopia\Database\Database; use Utopia\Database\Document; @@ -1105,7 +1105,7 @@ App::get('/v1/account/logs') ->inject('usage') ->action(function (?int $limit, ?int $offset, Response $response, Document $user, Locale $locale, Reader $geodb, Database $dbForProject, Stats $usage) { - $audit = new Audits($dbForProject); + $audit = new EventAudit($dbForProject); $logs = $audit->getLogsByUser($user->getId(), $limit, $offset);