Updated all API functions to use the new logAction Function

This commit is contained in:
johnnyq
2024-11-14 18:27:31 -05:00
parent bfffec7363
commit e9f023f0c7
9 changed files with 28 additions and 31 deletions

View File

@@ -21,8 +21,8 @@ if (!empty($contact_id)) {
if ($delete_sql && !empty($contact_name)) {
$delete_count = mysqli_affected_rows($mysqli);
//Logging
mysqli_query($mysqli, "INSERT INTO logs SET log_type = 'Contact', log_action = 'Deleted', log_description = '$contact_name via API ($api_key_name)', log_ip = '$ip', log_user_agent = '$user_agent', log_client_id = $client_id");
// Logging
logAction("Contact", "Delete", "$contact_name via API ($api_key_name)", $client_id);
}
}