MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / updateSessionTimestamp

Function updateSessionTimestamp

src/pages/install/utils.ts:98–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96let keepAliveTimerId: ReturnType<typeof setInterval> | number = 0;
97
98const updateSessionTimestamp = () => {
99 if (!activeSessionKey) {
100 return;
101 }
102 new TempStorageDAO().update(activeSessionKey, { savedAt: Date.now() });
103};
104
105export const startKeepAlive = (key: string) => {
106 activeSessionKey = key;

Callers 1

startKeepAliveFunction · 0.85

Calls 1

updateMethod · 0.65

Tested by

no test coverage detected