Update: 2026-05-07 03:26:24

This commit is contained in:
Hamza-Ayed
2026-05-07 03:26:24 +03:00
parent 440c8c1633
commit a5623d5b84
5 changed files with 5 additions and 5 deletions

View File

@@ -139,7 +139,7 @@ function activateSubscription(\PDO $db, array $payment, string $userId): void
]);
// Log activation
$logStmt = $db->prepare("INSERT INTO audit_logs (tenant_id, user_id, action, entity_type, entity_id, details) VALUES (?, ?, 'subscription.activated', 'payment', ?, ?)");
$logStmt = $db->prepare("INSERT INTO audit_logs (tenant_id, user_id, action, entity_type, entity_id, new_data) VALUES (?, ?, 'subscription.activated', 'payment', ?, ?)");
$logStmt->execute([
$payment['tenant_id'],
$userId,