mirror of
https://github.com/bitwarden/directory-connector
synced 2025-12-15 07:43:27 +00:00
Revert unrelated change
This commit is contained in:
@@ -164,8 +164,13 @@ export class SyncService {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!u.deleted) {
|
if (!u.deleted) {
|
||||||
|
// 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));
|
processedActiveUsers.set(u.email, JSON.stringify(u));
|
||||||
uniqueUsers.push(u);
|
uniqueUsers.push(u);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// UserEntrys with duplicate email will not throw an error if they are all deleted. They will be synced.
|
// 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));
|
processedDeletedUsers.set(u.email, JSON.stringify(u));
|
||||||
|
|||||||
Reference in New Issue
Block a user