(userId: string)
| 2169 | } |
| 2170 | |
| 2171 | getHubUser(userId: string): HubUserRecord | null { |
| 2172 | const row = this.db.prepare('SELECT * FROM hub_users WHERE id = ?').get(userId) as HubUserRow | undefined; |
| 2173 | if (!row) return null; |
| 2174 | const user = rowToHubUser(row); |
| 2175 | user.groups = this.getGroupsForHubUser(userId); |
| 2176 | return user; |
| 2177 | } |
| 2178 | |
| 2179 | listHubUsers(status?: UserStatus): HubUserRecord[] { |
| 2180 | const rows = status |
no test coverage detected