1
0
mirror of https://github.com/bitwarden/directory-connector synced 2025-12-10 05:13:17 +00:00

Fix filtering unsupported users

This commit is contained in:
Daniel James Smith
2021-03-25 18:36:43 +01:00
parent 61c6ba8189
commit 762818ee39

View File

@@ -104,7 +104,7 @@ export class SyncService {
}
private filterUnsupportedUsers(users: UserEntry[]): UserEntry[] {
return users == null ? null : users.filter(u => u.email == null || u.email.length <= 50);
return users == null ? null : users.filter(u => u.email?.length <= 50);
}
private flattenUsersToGroups(levelGroups: GroupEntry[], allGroups: GroupEntry[]): Set<string> {