Fix Typo.

This commit is contained in:
Brian Cao 2022-11-17 22:46:05 -08:00
parent 5aa8187e42
commit f5eb974d8d
9 changed files with 104 additions and 17 deletions

View file

@ -10,7 +10,7 @@ import { getPageviewStats } from 'queries';
const unitTypes = ['year', 'month', 'hour', 'day'];
export interface WebsitePageviewReqeustQuery {
export interface WebsitePageviewRequestQuery {
id: string;
websiteId: string;
start_at: number;
@ -26,7 +26,7 @@ export interface WebsitePageviewReqeustQuery {
}
export default async (
req: NextApiRequestQueryBody<WebsitePageviewReqeustQuery>,
req: NextApiRequestQueryBody<WebsitePageviewRequestQuery>,
res: NextApiResponse<WebsitePageviews>,
) => {
await useCors(req, res);