forked from Alex/Pterodactyl-Panel
Fix missing user agent headers to store an empty string rather than null value
This commit is contained in:
parent
5e5d7d6689
commit
7b429831ce
@ -120,8 +120,8 @@ class AuditLog extends Model
|
||||
'server_id' => null,
|
||||
'action' => $action,
|
||||
'device' => $request ? [
|
||||
'ip_address' => $request->getClientIp(),
|
||||
'user_agent' => $request->userAgent(),
|
||||
'ip_address' => $request->getClientIp() ?? '127.0.0.1',
|
||||
'user_agent' => $request->userAgent() ?? '',
|
||||
] : [],
|
||||
'metadata' => $metadata,
|
||||
]);
|
||||
|
Loading…
Reference in New Issue
Block a user