MCPcopy Create free account
hub / github.com/ChatGPTBox-dev/chatGPTBox / getSession

Function getSession

src/services/local-session.mjs:47–53  ·  view source on GitHub ↗
(sessionId)

Source from the content-addressed store, hash-verified

45}
46
47export const getSession = async (sessionId) => {
48 const currentSessions = await getSessions()
49 return {
50 session: currentSessions.find((session) => session.sessionId === sessionId),
51 currentSessions,
52 }
53}
54
55export const updateSession = async (newSession) => {
56 newSession.updatedAt = new Date().toISOString()

Callers 4

setSessionIdSafeFunction · 0.90
AppFunction · 0.90
createSessionFunction · 0.85

Calls 1

getSessionsFunction · 0.85

Tested by

no test coverage detected