(row: Record<string, unknown>)
| 169 | } |
| 170 | |
| 171 | function rowToUser(row: Record<string, unknown>): User { |
| 172 | return { |
| 173 | id: row.id as string, |
| 174 | email: row.email as string, |
| 175 | orgId: row.org_id as string, |
| 176 | role: row.role as UserRole, |
| 177 | createdAt: row.created_at as string, |
| 178 | updatedAt: row.updated_at as string | undefined, |
| 179 | }; |
| 180 | } |
| 181 | |
| 182 | function rowToApiKey(row: Record<string, unknown>): ApiKey { |
| 183 | return { |
no outgoing calls
no test coverage detected
searching dependent graphs…