1
0
mirror of https://github.com/bitwarden/directory-connector synced 2025-12-05 23:53:21 +00:00

Revert unrelated change

This commit is contained in:
Thomas Rittson
2025-09-27 14:57:34 +10:00
parent 6cb1c08f51
commit 1a62248932

View File

@@ -164,8 +164,13 @@ export class SyncService {
}
} else {
if (!u.deleted) {
processedActiveUsers.set(u.email, JSON.stringify(u));
uniqueUsers.push(u);
// Check that active UserEntry does not conflict with a deleted UserEntry
if (processedDeletedUsers.has(u.email)) {
duplicateEmails.push(u.email);
} else {
processedActiveUsers.set(u.email, JSON.stringify(u));
uniqueUsers.push(u);
}
} else {
// UserEntrys with duplicate email will not throw an error if they are all deleted. They will be synced.
processedDeletedUsers.set(u.email, JSON.stringify(u));