(row: HubUserRow)
| 3110 | } |
| 3111 | |
| 3112 | function rowToHubUser(row: HubUserRow): HubUserRecord { |
| 3113 | return { |
| 3114 | id: row.id, |
| 3115 | username: row.username, |
| 3116 | deviceName: row.device_name || undefined, |
| 3117 | role: row.role as UserRole, |
| 3118 | status: row.status as UserStatus, |
| 3119 | groups: [], |
| 3120 | tokenHash: row.token_hash, |
| 3121 | createdAt: row.created_at, |
| 3122 | approvedAt: row.approved_at, |
| 3123 | lastIp: row.last_ip || "", |
| 3124 | lastActiveAt: row.last_active_at ?? null, |
| 3125 | identityKey: row.identity_key || "", |
| 3126 | leftAt: row.left_at ?? null, |
| 3127 | removedAt: row.removed_at ?? null, |
| 3128 | rejectedAt: row.rejected_at ?? null, |
| 3129 | rejoinRequestedAt: row.rejoin_requested_at ?? null, |
| 3130 | }; |
| 3131 | } |
| 3132 | |
| 3133 | interface HubTaskRecord { |
| 3134 | id: string; |
no outgoing calls
no test coverage detected