mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-07-25 21:22:02 +00:00
Added column to display if a visit is a potential bot in the visits table
This commit is contained in:
@@ -81,9 +81,10 @@ export const processStatsFromVisits = (visits: NormalizedVisit[]) => visits.redu
|
||||
);
|
||||
|
||||
export const normalizeVisits = map((visit: Visit): NormalizedVisit => {
|
||||
const { userAgent, date, referer, visitLocation } = visit;
|
||||
const { userAgent, date, referer, visitLocation, potentialBot = false } = visit;
|
||||
const common = {
|
||||
date,
|
||||
potentialBot,
|
||||
...parseUserAgent(userAgent),
|
||||
referer: extractDomain(referer),
|
||||
country: visitLocation?.countryName || 'Unknown', // eslint-disable-line @typescript-eslint/prefer-nullish-coalescing
|
||||
|
||||
Reference in New Issue
Block a user