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{}{
|
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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user