fix(auth): corrected apu_client_ip to only return an string instead of array with valid true
This commit is contained in:
@@ -311,7 +311,7 @@ func logsHandler(db *sql.DB) http.HandlerFunc {
|
||||
entry := map[string]interface{}{
|
||||
"timestamp": ts,
|
||||
"action": action,
|
||||
"api_client_ip": apiClientIP,
|
||||
"api_client_ip": apiClientIP.String,
|
||||
"reason": reason.String,
|
||||
}
|
||||
if ip.Valid {
|
||||
|
||||
Reference in New Issue
Block a user