Updated prop to make it required as in Shlink v2.8.0 or newer

This commit is contained in:
Alejandro Celaya 2022-12-23 21:08:41 +01:00
parent 60fc351344
commit 4a9e05cf17
2 changed files with 2 additions and 2 deletions

View file

@ -82,7 +82,7 @@ export const processStatsFromVisits = (visits: NormalizedVisit[]) => visits.redu
); );
export const normalizeVisits = map((visit: Visit): NormalizedVisit => { export const normalizeVisits = map((visit: Visit): NormalizedVisit => {
const { userAgent, date, referer, visitLocation, potentialBot = false } = visit; const { userAgent, date, referer, visitLocation, potentialBot } = visit;
const common = { const common = {
date, date,
potentialBot, potentialBot,

View file

@ -19,7 +19,7 @@ export interface RegularVisit {
date: string; date: string;
userAgent: string; userAgent: string;
visitLocation: VisitLocation | null; visitLocation: VisitLocation | null;
potentialBot?: boolean; // Optional only when using Shlink older than v2.7 potentialBot: boolean;
} }
export interface OrphanVisit extends RegularVisit { export interface OrphanVisit extends RegularVisit {