heatmap migration/code clean-up

This commit is contained in:
Francis Cao committed 2026-06-23 15:01:00 -07:00
1 parent 3888ec6f4f
commit 8a0bdc2727
13 files changed
+49 -1326

No files matched your search

-4
View File
@@ -217,7 +217,6 @@ export async function POST(request: Request) {
sessionId,
visitId,
eventType: event.type === 'click' ? HEATMAP_EVENT_TYPE.click : HEATMAP_EVENT_TYPE.scroll,
nodeId: null,
x: event.type === 'click' ? (event.x ?? null) : null,
y: event.type === 'click' ? (event.y ?? null) : null,
pageX: event.type === 'click' ? (event.pageX ?? null) : null,
@@ -229,9 +228,6 @@ export async function POST(request: Request) {
scrollPct: event.type === 'scroll' ? (event.scrollPct ?? null) : null,
urlPath: getUrlPath(event.url),
createdAt: new Date(event.timestamp ?? fallbackMs),
replayChunkIndex: null,
replayEventIndex: null,
replayTimeMs: null,
}));
if (heatmapRows.length) {