(userId: string)
| 2305 | } |
| 2306 | |
| 2307 | getHubUser(userId: string): HubUserRecord | null { |
| 2308 | const row = this.db.prepare('SELECT * FROM hub_users WHERE id = ?').get(userId) as HubUserRow | undefined; |
| 2309 | if (!row) return null; |
| 2310 | const user = rowToHubUser(row); |
| 2311 | user.groups = this.getGroupsForHubUser(userId); |
| 2312 | return user; |
| 2313 | } |
| 2314 | |
| 2315 | listHubUsers(status?: UserStatus): HubUserRecord[] { |
| 2316 | const rows = status |
no test coverage detected