mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 09:45:04 +01:00
Updated subdivision save.
This commit is contained in:
parent
fa52e6c83f
commit
43a4357729
@ -137,7 +137,7 @@ async function clickhouseQuery(data: {
|
||||
session_id: sessionId,
|
||||
event_id: eventId,
|
||||
country: country ? country : null,
|
||||
subdivision1: subdivision1 ? country.concat('-', subdivision1) : null,
|
||||
subdivision1: country && subdivision1 ? `${country}-${subdivision1}` : null,
|
||||
subdivision2: subdivision2 ? subdivision2 : null,
|
||||
city: city ? city : null,
|
||||
url_path: urlPath?.substring(0, URL_LENGTH),
|
||||
|
@ -44,7 +44,7 @@ async function relationalQuery(data: Prisma.SessionCreateInput) {
|
||||
screen,
|
||||
language,
|
||||
country,
|
||||
subdivision1: subdivision1 ? country.concat('-', subdivision1) : null,
|
||||
subdivision1: country && subdivision1 ? `${country}-${subdivision1}` : null,
|
||||
subdivision2,
|
||||
city,
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user