1
0
Fork 0
mirror of synced 2024-06-03 03:14:50 +12:00

rename audit to EventAudit

This commit is contained in:
Everly Precia Suresh 2022-05-25 13:49:32 +00:00
parent 092d31e59c
commit 425d81256b

View file

@ -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);