(userId: string)
| 165 | } |
| 166 | |
| 167 | resetToPending(userId: string): ManagedHubUser | null { |
| 168 | const user = this.store.getHubUser(userId); |
| 169 | if (!user) return null; |
| 170 | const updated = { |
| 171 | ...user, |
| 172 | status: "pending" as const, |
| 173 | tokenHash: "", |
| 174 | approvedAt: null, |
| 175 | }; |
| 176 | this.store.upsertHubUser(updated); |
| 177 | return updated; |
| 178 | } |
| 179 | } |
no test coverage detected