mirror of
https://github.com/cydrobolt/polr.git
synced 2024-11-09 11:42:28 +01:00
Default to null for invalid geoip queries #381
This commit is contained in:
parent
1fb607ba63
commit
f9622d733b
@ -61,6 +61,7 @@ class StatsHelper {
|
||||
->select(DB::raw("country AS label, count(*) AS clicks"))
|
||||
->groupBy('country')
|
||||
->orderBy('clicks', 'desc')
|
||||
->whereNotNull('country')
|
||||
->get();
|
||||
|
||||
return $stats;
|
||||
|
@ -126,18 +126,18 @@ return [
|
||||
|
||||
'default_location' => [
|
||||
'ip' => '127.0.0.0',
|
||||
'iso_code' => 'US',
|
||||
'country' => 'United States',
|
||||
'city' => 'New Haven',
|
||||
'state' => 'CT',
|
||||
'state_name' => 'Connecticut',
|
||||
'postal_code' => '06510',
|
||||
'lat' => 41.31,
|
||||
'lon' => -72.92,
|
||||
'timezone' => 'America/New_York',
|
||||
'continent' => 'NA',
|
||||
'iso_code' => null,
|
||||
'country' => null,
|
||||
'city' => null,
|
||||
'state' => null,
|
||||
'state_name' => null,
|
||||
'postal_code' => null,
|
||||
'lat' => 0,
|
||||
'lon' => 0,
|
||||
'timezone' => 'UTC',
|
||||
'continent' => null,
|
||||
'default' => true,
|
||||
'currency' => 'USD',
|
||||
'currency' => null,
|
||||
],
|
||||
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user