( subject: AdminSubjectWithConnections, identities: ReadonlyMap<string, AdminUserIdentity>, )
| 208 | }); |
| 209 | |
| 210 | const toUserWithConnections = ( |
| 211 | subject: AdminSubjectWithConnections, |
| 212 | identities: ReadonlyMap<string, AdminUserIdentity>, |
| 213 | ) => ({ |
| 214 | ...toUser(subject, identities), |
| 215 | connections: subject.connections.map(toConnection), |
| 216 | }); |
| 217 | |
| 218 | /** |
| 219 | * Accept the legacy one-way directory or the two-way one, so a host that only |
no test coverage detected