include visitors metrics in websiteStats

This commit is contained in:
Francis Cao 2024-03-26 10:43:01 -07:00
parent 1a839d1cae
commit 51139c1918
4 changed files with 31 additions and 20 deletions

View file

@ -12,7 +12,7 @@ export function salt() {
return hash(secret(), ROTATING_SALT);
}
export function sessionSalt() {
export function visitSalt() {
const ROTATING_SALT = hash(startOfHour(new Date()).toUTCString());
return hash(secret(), ROTATING_SALT);