Update: 2026-05-07 03:26:24
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -83,7 +83,7 @@ try {
|
||||
]);
|
||||
|
||||
// 7. Log
|
||||
$logStmt = $db->prepare("INSERT INTO audit_logs (tenant_id, user_id, action, entity_type, entity_id, details) VALUES (?, ?, 'payment.created', 'payment', ?, ?)");
|
||||
$logStmt = $db->prepare("INSERT INTO audit_logs (tenant_id, user_id, action, entity_type, entity_id, new_data) VALUES (?, ?, 'payment.created', 'payment', ?, ?)");
|
||||
$logStmt->execute([
|
||||
$tenantId,
|
||||
$userId,
|
||||
|
||||
@@ -84,7 +84,7 @@ try {
|
||||
}
|
||||
|
||||
// Audit log
|
||||
$logStmt = $db->prepare("INSERT INTO audit_logs (tenant_id, user_id, action, entity_type, entity_id, details) VALUES (?, ?, ?, 'payment', ?, ?)");
|
||||
$logStmt = $db->prepare("INSERT INTO audit_logs (tenant_id, user_id, action, entity_type, entity_id, new_data) VALUES (?, ?, ?, 'payment', ?, ?)");
|
||||
$logStmt->execute([
|
||||
$payment['tenant_id'],
|
||||
$decoded['user_id'],
|
||||
|
||||
@@ -274,7 +274,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,
|
||||
|
||||
@@ -144,7 +144,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,
|
||||
|
||||
Reference in New Issue
Block a user