Check audits

This commit is contained in:
fogelito 2025-08-31 12:52:51 +03:00
parent c96b6300da
commit dffbe2e4ab

View file

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