mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
Check audits
This commit is contained in:
parent
c96b6300da
commit
dffbe2e4ab
1 changed files with 4 additions and 1 deletions
|
|
@ -158,10 +158,11 @@ class Audits extends Action
|
|||
* @var $projectDocument Document
|
||||
*/
|
||||
$projectDocument = $projectLogs['project'];
|
||||
$dbForProject = $getProjectDB($projectDocument);
|
||||
|
||||
Console::log('Processing Project "'.$projectDocument->getSequence().'" batch with ' . count($projectLogs['logs']) . ' events');
|
||||
|
||||
$dbForProject = $getProjectDB($projectDocument);
|
||||
|
||||
$audit = new Audit($dbForProject);
|
||||
|
||||
$audit->logBatch($projectLogs['logs']);
|
||||
|
|
@ -170,7 +171,9 @@ class Audits extends Action
|
|||
} catch (Throwable $e) {
|
||||
Console::error('Error processing audit logs: ' . $e->getMessage());
|
||||
}
|
||||
|
||||
$this->lastTriggeredTime = time();
|
||||
|
||||
return new Commit();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue