diff --git a/pages/api/websites/[id]/pageviews.ts b/pages/api/websites/[id]/pageviews.ts index 475c9ee1..c38b6c75 100644 --- a/pages/api/websites/[id]/pageviews.ts +++ b/pages/api/websites/[id]/pageviews.ts @@ -10,7 +10,6 @@ const unitTypes = ['year', 'month', 'hour', 'day']; export interface WebsitePageviewRequestQuery { id: string; - websiteId: string; startAt: number; endAt: number; unit: string; diff --git a/pages/api/websites/[id]/stats.ts b/pages/api/websites/[id]/stats.ts index b3ab2f07..f89ea5d1 100644 --- a/pages/api/websites/[id]/stats.ts +++ b/pages/api/websites/[id]/stats.ts @@ -7,7 +7,6 @@ import { getWebsiteStats } from 'queries'; export interface WebsiteStatsRequestQuery { id: string; - type: string; startAt: number; endAt: number; url: string; diff --git a/queries/analytics/session/createSession.ts b/queries/analytics/session/createSession.ts index 7286cb97..4014ac41 100644 --- a/queries/analytics/session/createSession.ts +++ b/queries/analytics/session/createSession.ts @@ -44,7 +44,7 @@ async function relationalQuery(data: Prisma.SessionCreateInput) { screen, language, country, - subdivision1: country.concat('-', subdivision1), + subdivision1: subdivision1 ? country.concat('-', subdivision1) : null, subdivision2, city, },