fix(auth): corrected apu_client_ip to only return an string instead of array with valid true

This commit is contained in:
db123-test
2026-05-07 18:15:06 +03:30
parent bdc0d9beb2
commit 227ab0a42a

View File

@@ -311,7 +311,7 @@ func logsHandler(db *sql.DB) http.HandlerFunc {
entry := map[string]interface{}{ entry := map[string]interface{}{
"timestamp": ts, "timestamp": ts,
"action": action, "action": action,
"api_client_ip": apiClientIP, "api_client_ip": apiClientIP.String,
"reason": reason.String, "reason": reason.String,
} }
if ip.Valid { if ip.Valid {