mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-18 15:23:38 +01:00
Truncate strings.
This commit is contained in:
parent
9415fe9a6c
commit
b24b855006
@ -184,8 +184,8 @@ export async function savePageView(website_id, session_id, url, referrer) {
|
|||||||
data: {
|
data: {
|
||||||
website_id,
|
website_id,
|
||||||
session_id,
|
session_id,
|
||||||
url: url.substr(0, URL_LENGTH),
|
url: url?.substr(0, URL_LENGTH),
|
||||||
referrer: referrer.substr(0, URL_LENGTH),
|
referrer: referrer?.substr(0, URL_LENGTH),
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
@ -197,9 +197,9 @@ export async function saveEvent(website_id, session_id, url, event_type, event_v
|
|||||||
data: {
|
data: {
|
||||||
website_id,
|
website_id,
|
||||||
session_id,
|
session_id,
|
||||||
url: url.substr(0, URL_LENGTH),
|
url: url?.substr(0, URL_LENGTH),
|
||||||
event_type,
|
event_type: event_type?.substr(0, 50),
|
||||||
event_value,
|
event_value: event_value?.substr(0, 50),
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user