chore: remove debug print

This commit is contained in:
dusk 2025-01-16 13:38:56 +03:00
parent dc04c39bd3
commit 0dc606643a
Signed by: dusk
SSH Key Fingerprint: SHA256:Abmvag+juovVufZTxyWY8KcVgrznxvBjQpJesv071Aw

View File

@ -36,7 +36,6 @@ export const incrementVisitCount = (request: Request, cookies: Cookies) => {
export const addLastVisitor = (request: Request, cookies: Cookies) => { export const addLastVisitor = (request: Request, cookies: Cookies) => {
let visitors = get(lastVisitors) let visitors = get(lastVisitors)
console.log(visitors)
visitors = _addLastVisitor(visitors, request, cookies) visitors = _addLastVisitor(visitors, request, cookies)
lastVisitors.set(visitors) lastVisitors.set(visitors)
return visitors return visitors
@ -61,7 +60,7 @@ const _addLastVisitor = (visitors: Map<string, Visitor>, request: Request, cooki
if (! visitors.has(visitorId)) { if (! visitors.has(visitorId)) {
visitorId = nanoid() visitorId = nanoid()
scopedCookies.set('visitorId', visitorId) scopedCookies.set('visitorId', visitorId)
console.log(`new client id ${visitorId}`) console.log(`new client visitor id ${visitorId}`)
} }
// update the entry // update the entry
let visitorEntry = visitors.get(visitorId) || {count: 0, since: 0} let visitorEntry = visitors.get(visitorId) || {count: 0, since: 0}