MCPcopy Index your code
hub / github.com/CapSoftware/Cap / generateSessionId

Function generateSessionId

scripts/analytics/populate-test-data.js:52–55  ·  view source on GitHub ↗
(videoId, timestamp, city, browser, index)

Source from the content-addressed store, hash-verified

50}
51
52function generateSessionId(videoId, timestamp, city, browser, index) {
53 const day = timestamp.slice(0, 10);
54 return `test:${videoId}:${day}:${city}:${browser}-${index}`;
55}
56
57function generateTestEvent(videoId, orgId = "", index = 0) {
58 const timestamp = generateRandomTimestamp(30);

Callers 1

generateTestEventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected