(userId: string, sessionId: string)
| 841 | }, |
| 842 | |
| 843 | getSessionWithAnnotationsForUser(userId: string, sessionId: string): SessionWithAnnotations | undefined { |
| 844 | const sessionRow = tenantStmts.getSessionForUser.get(sessionId, userId) as Record<string, unknown> | undefined; |
| 845 | if (!sessionRow) return undefined; |
| 846 | |
| 847 | const annotationRows = tenantStmts.getAnnotationsBySession.all(sessionId) as Record<string, unknown>[]; |
| 848 | |
| 849 | return { |
| 850 | ...rowToSession(sessionRow), |
| 851 | annotations: annotationRows.map(rowToAnnotation), |
| 852 | }; |
| 853 | }, |
| 854 | |
| 855 | // User-scoped annotations |
| 856 | getPendingAnnotationsForUser(userId: string, sessionId: string): Annotation[] { |
nothing calls this directly
no test coverage detected
searching dependent graphs…