(sessionId: string)
| 199 | } |
| 200 | |
| 201 | async getSession(sessionId: string): Promise<SiSession | null> { |
| 202 | const result = await query( |
| 203 | "SELECT * FROM si_sessions WHERE session_id = $1", |
| 204 | [sessionId] |
| 205 | ); |
| 206 | |
| 207 | if (result.rows.length === 0) return null; |
| 208 | return this.deserializeSession(result.rows[0]); |
| 209 | } |
| 210 | |
| 211 | async updateSessionActivity(sessionId: string): Promise<void> { |
| 212 | await query( |
no test coverage detected