( subject: AdminSubjectWithConnections, identities: ReadonlyMap<string, AdminUserIdentity>, )
| 224 | }); |
| 225 | |
| 226 | const toUserWithConnections = ( |
| 227 | subject: AdminSubjectWithConnections, |
| 228 | identities: ReadonlyMap<string, AdminUserIdentity>, |
| 229 | ) => ({ |
| 230 | ...toUser(subject, identities), |
| 231 | connections: subject.connections.map(toConnection), |
| 232 | }); |
| 233 | |
| 234 | /** |
| 235 | * Accept the legacy one-way directory or the two-way one, so a host that only |
no test coverage detected