From 34613426013b91b879f4a345425903d3c8746795 Mon Sep 17 00:00:00 2001 From: Brian Cao Date: Thu, 13 Apr 2023 22:52:41 -0700 Subject: [PATCH] Clean up api. --- pages/api/websites/[id]/pageviews.ts | 1 - pages/api/websites/[id]/stats.ts | 1 - 2 files changed, 2 deletions(-) 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;