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