Rechtstexte und B2C-Vertragsabläufe absichern
This commit is contained in:
@@ -18,6 +18,7 @@ function app_audit_log(
|
||||
?int $subjectId,
|
||||
array $metadata = []
|
||||
): void {
|
||||
$pdo->exec('DELETE FROM audit_log WHERE created_at < DATE_SUB(NOW(), INTERVAL 180 DAY)');
|
||||
$stmt = $pdo->prepare(
|
||||
'INSERT INTO audit_log (tenant_id, actor_user_id, action, subject_type, subject_id, metadata_json, ip)
|
||||
VALUES (?, ?, ?, ?, ?, ?, ?)'
|
||||
|
||||
Reference in New Issue
Block a user