mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-16 02:05:04 +01:00
Fix for bad region data.
This commit is contained in:
parent
684587f945
commit
02efac63c5
@ -138,7 +138,12 @@ async function clickhouseQuery(data: {
|
||||
session_id: sessionId,
|
||||
event_id: uuid(),
|
||||
country: country,
|
||||
subdivision1: subdivision1,
|
||||
subdivision1:
|
||||
country && subdivision1
|
||||
? subdivision1.includes('-')
|
||||
? subdivision1
|
||||
: `${country}-${subdivision1}`
|
||||
: null,
|
||||
subdivision2: subdivision2,
|
||||
city: city,
|
||||
url_path: urlPath?.substring(0, URL_LENGTH),
|
||||
|
Loading…
Reference in New Issue
Block a user