only reveal a db record via /api/hits if it matches a real page

This commit is contained in:
jake committed 2022-07-06 11:49:41 -04:00
1 parent 8d47958473
commit 155c6cacd9
9 files changed
+82 -76

No files matched your search

+6 -6
View File
@@ -1,13 +1,13 @@
import type { NoteFrontMatter } from "./note";
export type PageStats = {
hits: number;
};
export type DetailedPageStats = PageStats & {
slug: string;
title?: string;
url?: string;
date?: string;
};
export type DetailedPageStats = PageStats &
Pick<NoteFrontMatter, "slug" | "title" | "date"> & {
url: string;
};
export type SiteStats = {
total: PageStats;