(row: Record<string, unknown>)
| 147 | } |
| 148 | |
| 149 | function rowToSession(row: Record<string, unknown>): Session & { userId?: string } { |
| 150 | return { |
| 151 | id: row.id as string, |
| 152 | url: row.url as string, |
| 153 | status: row.status as SessionStatus, |
| 154 | createdAt: row.created_at as string, |
| 155 | updatedAt: row.updated_at as string | undefined, |
| 156 | projectId: row.project_id as string | undefined, |
| 157 | metadata: row.metadata ? JSON.parse(row.metadata as string) : undefined, |
| 158 | userId: row.user_id as string | undefined, |
| 159 | }; |
| 160 | } |
| 161 | |
| 162 | function rowToOrganization(row: Record<string, unknown>): Organization { |
| 163 | return { |
no outgoing calls
no test coverage detected
searching dependent graphs…