(row: HubUserRow)
| 3248 | } |
| 3249 | |
| 3250 | function rowToHubUser(row: HubUserRow): HubUserRecord { |
| 3251 | return { |
| 3252 | id: row.id, |
| 3253 | username: row.username, |
| 3254 | deviceName: row.device_name || undefined, |
| 3255 | role: row.role as UserRole, |
| 3256 | status: row.status as UserStatus, |
| 3257 | groups: [], |
| 3258 | tokenHash: row.token_hash, |
| 3259 | createdAt: row.created_at, |
| 3260 | approvedAt: row.approved_at, |
| 3261 | lastIp: row.last_ip || "", |
| 3262 | lastActiveAt: row.last_active_at ?? null, |
| 3263 | identityKey: row.identity_key || "", |
| 3264 | leftAt: row.left_at ?? null, |
| 3265 | removedAt: row.removed_at ?? null, |
| 3266 | rejectedAt: row.rejected_at ?? null, |
| 3267 | rejoinRequestedAt: row.rejoin_requested_at ?? null, |
| 3268 | }; |
| 3269 | } |
| 3270 | |
| 3271 | interface HubTaskRecord { |
| 3272 | id: string; |
no outgoing calls
no test coverage detected